[d1adc1]: CMakeModules / FindTIFF.cmake  Maximize  Restore  History

Download this file

38 lines (30 with data), 1.1 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
# - Find TIFF 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
# TIFF_INCLUDE_DIR, where to find headers
# TIFF_LIBRARIES, list of link libraries for release
# TIFF_DEBUG_LIBRARIES ditto for debug
# TIFF_FOUND, If != "YES", do not try to use TIFF.
FIND_PATH(TIFF_INCLUDE_DIR tiff.h
/usr/local/include
/usr/include
${wxWidgets_ROOT_DIR}/src/tiff
)
include(FindLibraryWithDebug)
find_library_with_debug(TIFF_LIBRARIES
WIN32_DEBUG_POSTFIX d
NAMES tiff libtiff wxtiff
PATHS /usr/lib /usr/local/lib ${wxWidgets_LIB_DIR}
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TIFF DEFAULT_MSG
TIFF_INCLUDE_DIR TIFF_LIBRARIES)
MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARIES)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks