summaryrefslogtreecommitdiffstats
path: root/src/cmake/modules/FindTIFF.cmake
blob: 6dab2b4831e481f9eaf26e39b7864bf6e16ead71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file is part of MXE.
# See index.html for further information.

message("== Custom MXE File: " ${CMAKE_CURRENT_LIST_FILE})

if(NOT PKG_CONFIG_FOUND)
  find_package(PkgConfig REQUIRED)
endif()

pkg_check_modules(TIFF libtiff-4)

# for backward compatiblity
set(TIFF_LIBRARY ${TIFF_LIBRARIES})
set(TIFF_INCLUDE_DIR ${TIFF_INCLUDE_DIRS})
set(TIFF_VERSION_STRING ${TIFF_VERSION})