summaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-06-19 01:40:20 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2015-06-19 01:41:54 (GMT)
commit08b5627751f8b9d635508e8457fab1d084e00071 (patch)
treec0b51ed25d480b6e304da87a5f18460dedac6ddc /src/cmake
parent41cbe16d512343948a8b9289c3011a9edbabf7a7 (diff)
downloadmxe-08b5627751f8b9d635508e8457fab1d084e00071.zip
mxe-08b5627751f8b9d635508e8457fab1d084e00071.tar.gz
mxe-08b5627751f8b9d635508e8457fab1d084e00071.tar.bz2
Add CMake script for finding TIFF
Fixes #721.
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/FindTIFF.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmake/FindTIFF.cmake b/src/cmake/FindTIFF.cmake
new file mode 100644
index 0000000..52f97d6
--- /dev/null
+++ b/src/cmake/FindTIFF.cmake
@@ -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})