Add CMake script for finding TIFF

Fixes #721.
This commit is contained in:
Timothy Gu 2015-06-18 21:40:20 -04:00
parent 41cbe16d51
commit 08b5627751
1 changed files with 13 additions and 0 deletions

13
src/cmake/FindTIFF.cmake Normal file
View File

@ -0,0 +1,13 @@
# This file is part of MXE.
# See index.html for further information.
if(NOT PKG_CONFIG_FOUND)
find_package(PkgConfig REQUIRED)
endif()
pkg_check_modules(TIFF libtiff-4)
# for backward compatiblity
set(TIFF_LIBRARY ${SDL_LIBRARIES})
set(TIFF_INCLUDE_DIR ${SDL_INCLUDE_DIRS})
set(TIFF_VERSION_STRING ${SDL_VERSION})