STYLE: Nightly Version update
[cmake.git] / Modules / FindJPEG.cmake
blobe81e8bf9e887df8cc4818fe0a43c5b8dbf3ec2d5
2 # Find the native JPEG includes and library
4 # This module defines
5 # JPEG_INCLUDE_DIR, where to find jpeglib.h, etc.
6 # JPEG_LIBRARIES, the libraries to link against to use JPEG.
7 # JPEG_FOUND, If false, do not try to use JPEG.
9 # also defined, but not for general use are
10 # JPEG_LIBRARY, where to find the JPEG library.
12 FIND_PATH(JPEG_INCLUDE_DIR jpeglib.h
13 /usr/local/include
14 /usr/include
17 FIND_LIBRARY(JPEG_LIBRARY jpeg
18 /usr/lib
19 /usr/local/lib
22 IF (JPEG_LIBRARY)
23   IF (JPEG_INCLUDE_DIR)
24     SET(JPEG_LIBRARIES ${JPEG_LIBRARY})
25     SET(JPEG_FOUND "YES")
26   ENDIF (JPEG_INCLUDE_DIR)
27 ENDIF (JPEG_LIBRARY)
29 # Deprecated declarations.
30 SET (NATIVE_JPEG_INCLUDE_PATH ${JPEG_INCLUDE_DIR} )
31 GET_FILENAME_COMPONENT (NATIVE_JPEG_LIB_PATH ${JPEG_LIBRARY} PATH)