Debian Codegraph @

cmake_modules/FindTIFFXX.cmake

raw
1 # - Try to find TIFFXX Library
2 # Once done this will define
3 #
4 # TIFXX_LIBRARY - Link these to use TIFFXX
5
6 # Redistribution and use is allowed according to the terms of the BSD license.
7 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
8
9 if (TIFFXX_LIBRARY)
10
11 # in cache already
12 set(TIFFXX_FOUND TRUE)
13 message(STATUS "Found libtiffxx: ${TIFFXX_LIBRARY}")
14
15 else (TIFFXX_LIBRARY)
16
17 find_library(TIFFXX_LIBRARY NAMES tiffxx
18 PATHS
19 ${_obLinkDir}
20 ${GNUWIN32_DIR}/lib
21 )
22
23 if(TIFFXX_LIBRARY)
24 set(TIFFXX_FOUND TRUE)
25 else (TIFFXX_LIBRARY)
26 set(TIFFXX_FOUND FALSE)
27 endif(TIFFXX_LIBRARY)
28
29 if (TIFFXX_FOUND)
30 if (NOT TIFFXX_FIND_QUIETLY)
31 message(STATUS "Found tiffxx: ${TIFFXX_LIBRARY}")
32 endif (NOT TIFFXX_FIND_QUIETLY)
33 else (TIFFXX_FOUND)
34 if (TIFFXX_FIND_REQUIRED)
35 message(FATAL_ERROR "tiffxx is not found. Please install it first.")
36 endif (TIFFXX_FIND_REQUIRED)
37 endif (TIFFXX_FOUND)
38
39 mark_as_advanced(TIFFXX_LIBRARY)
40
41 endif (TIFFXX_LIBRARY)