summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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})