2
# Once done, this will define
4
# Jpeg_FOUND - system has Jpeg
5
# Jpeg_INCLUDE_DIRS - the Jpeg include directories
6
# Jpeg_LIBRARIES - link these to use Jpeg
8
# See documentation on how to write CMake scripts at
9
# http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
11
include(LibFindMacros)
13
libfind_pkg_check_modules(Jpeg_PKGCONF jpeg)
15
find_path(Jpeg_INCLUDE_DIR
17
PATHS ${Jpeg_PKGCONF_INCLUDE_DIRS}
20
find_library(Jpeg_LIBRARY
22
PATHS ${Jpeg_PKGCONF_LIBRARY_DIRS}
25
set(Jpeg_PROCESS_INCLUDES Jpeg_INCLUDE_DIR)
26
set(Jpeg_PROCESS_LIBS Jpeg_LIBRARY)