2 # Find the native JPEG includes and library
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
17 FIND_LIBRARY(JPEG_LIBRARY jpeg
24 SET(JPEG_LIBRARIES ${JPEG_LIBRARY})
26 ENDIF (JPEG_INCLUDE_DIR)
29 # Deprecated declarations.
30 SET (NATIVE_JPEG_INCLUDE_PATH ${JPEG_INCLUDE_DIR} )
31 GET_FILENAME_COMPONENT (NATIVE_JPEG_LIB_PATH ${JPEG_LIBRARY} PATH)