summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/tiff
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/tiff')
-rw-r--r--kfile-plugins/tiff/CMakeLists.txt37
-rw-r--r--kfile-plugins/tiff/ConfigureChecks.cmake21
2 files changed, 58 insertions, 0 deletions
diff --git a/kfile-plugins/tiff/CMakeLists.txt b/kfile-plugins/tiff/CMakeLists.txt
new file mode 100644
index 00000000..9cc70ef0
--- /dev/null
+++ b/kfile-plugins/tiff/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_tiff.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_tiff (module) ########################
+
+tde_add_kpart( kfile_tiff AUTOMOC
+ SOURCES kfile_tiff.cpp
+ LINK kio-shared ${TIFF_LIBRARY}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/tiff/ConfigureChecks.cmake b/kfile-plugins/tiff/ConfigureChecks.cmake
new file mode 100644
index 00000000..c7efb9b7
--- /dev/null
+++ b/kfile-plugins/tiff/ConfigureChecks.cmake
@@ -0,0 +1,21 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# libtiff
+check_include_file( tiff.h HAVE_TIFF_H )
+if( HAVE_TIFF_H )
+ check_library_exists( tiff TIFFOpen "" HAVE_TIFF )
+endif( )
+if( HAVE_TIFF_H AND HAVE_TIFF )
+ set( TIFF_LIBRARY tiff )
+else( )
+ tde_message_fatal( "libtiff is required, but was not found on your system" )
+endif( )