1 # - Locate Jpeg library
3 # JPEG_LIBRARY, the library to link against
4 # JPEG_FOUND, if false, do not try to link to JPEG
5 # JPEG_INCLUDE_DIR, where to find headers.
7 IF(JPEG_LIBRARY AND JPEG_INCLUDE_DIR)
9 SET(JPEG_FIND_QUIETLY TRUE)
13 FIND_PATH(JPEG_INCLUDE_DIR
16 $ENV{JPEG_DIR}/include
26 FIND_LIBRARY(JPEG_LIBRARY
41 IF(JPEG_LIBRARY AND JPEG_INCLUDE_DIR)
43 IF(NOT JPEG_FIND_QUIETLY)
44 MESSAGE(STATUS "Found Jpeg: ${JPEG_LIBRARY}")
47 IF(NOT JPEG_FIND_QUIETLY)
48 MESSAGE(STATUS "Warning: Unable to find Jpeg!")