[044716]: config / cmake / Modules / FindTIFF.cmake  Maximize  Restore  History

Download this file

45 lines (32 with data), 1.2 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
#
# Find a TIFF library
#
# This file is used to manage using either a natively provided TIFF library or the one in v3p if provided.
#
#
# As per the standard scheme the following definitions are used
# TIFF_INCLUDE_DIR - where to find tiff.h
# TIFF_LIBRARIES - the set of libraries to include to use TIFF.
# TIFF_FOUND - TRUE, if available somewhere on the system.
# Additionally
# VXL_USING_NATIVE_TIFF - True if we are using a TIFF library provided outside vxl (or v3p)
# If this FORCE variable is unset or is FALSE, try to find a native library.
IF( VXL_FORCE_V3P_TIFF )
ELSE( VXL_FORCE_V3P_TIFF )
FIND_PACKAGE( TIFF QUIET )
ENDIF( VXL_FORCE_V3P_TIFF )
IF(TIFF_FOUND)
SET(VXL_USING_NATIVE_TIFF "YES")
ELSE(TIFF_FOUND)
#
# At some point, in a "release" version, it is possible that someone
# will not have the v3p tiff library, so make sure the headers
# exist.
#
IF(EXISTS ${vxl_SOURCE_DIR}/v3p/tiff/tiff.h)
SET( TIFF_FOUND "YES" )
SET( TIFF_INCLUDE_DIR ${vxl_SOURCE_DIR}/v3p/tiff)
SET( TIFF_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_DIR}/include/vxl/v3p/tiff)
SET( TIFF_LIBRARIES tiff )
ENDIF(EXISTS ${vxl_SOURCE_DIR}/v3p/tiff/tiff.h)
ENDIF(TIFF_FOUND)

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

Sign up for the SourceForge newsletter:





No, thanks