[28473f]: CMakeModules / FindJPEG.cmake Maximize Restore History

Download this file

FindJPEG.cmake    50 lines (42 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# - Find JPEG for Hugin 0.7 01Nov2007 TKSharpless
# Added to support Windows build but should work anywhere.
# After looking in UNIX standard places, tries wxWidgets build
# tree, which should have this package.
#
# Call FIND_PACKAGE(wxWidgets REQUIRED) before calling this!
#
# reads cache variables
# wxWidgets_ROOT_DIR
# wxWidgets_LIB_DIR
# defines cache variables
# JPEG_INCLUDE_DIR, where to find headers
# JPEG_LIBRARIES, list of release link libraries
# JPEG_DEBUG_LIBRARIES, list of debug link libraries
# JPEG_FOUND, If != "YES", do not try to use JPEG
FIND_PATH(JPEG_INCLUDE_DIR jpeglib.h
/usr/local/include
/usr/include
${SOURCE_BASE_DIR}/jpeg-8d
${SOURCE_BASE_DIR}/jpeg-8c
${SOURCE_BASE_DIR}/jpeg-8b
${SOURCE_BASE_DIR}/jpeg-8a
${SOURCE_BASE_DIR}/jpeg-8
${wxWidgets_ROOT_DIR}/src/jpeg
)
include(FindLibraryWithDebug)
find_library_with_debug(JPEG_LIBRARIES
WIN32_DEBUG_POSTFIX d
NAMES jpeg libjpeg wxjpeg
PATHS ${SYSTEM_LIB_DIRS}
${SOURCE_BASE_DIR}/jpeg-8d/lib
${SOURCE_BASE_DIR}/jpeg-8c/lib
${SOURCE_BASE_DIR}/jpeg-8b/lib
${SOURCE_BASE_DIR}/jpeg-8a/Release
${SOURCE_BASE_DIR}/jpeg-8/Release
${SOURCE_BASE_DIR}/jpeg-8/lib
${wxWidgets_LIB_DIR}
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(JPEG DEFAULT_MSG
JPEG_INCLUDE_DIR JPEG_LIBRARIES)
MARK_AS_ADVANCED(JPEG_INCLUDE_DIR JPEG_LIBRARIES )