summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/tiff
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-07 20:40:46 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-07 20:40:46 +0000
commit76baa6e505aa4e0d404a2b81addcc3f2599075fe (patch)
tree8684ca2e01e57d4df075b19387bb77dea01733a7 /kfile-plugins/tiff
parent7e5679fbd107db459c18b567e30846a9982dfa94 (diff)
downloadtdegraphics-76baa6e505aa4e0d404a2b81addcc3f2599075fe.tar.gz
tdegraphics-76baa6e505aa4e0d404a2b81addcc3f2599075fe.zip
[kdegraphics] added cmake support for kfax, kfaxview, kghostview, and kfile-plugins
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230814 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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
+# mutantturkey@gmail.com
+#
+# 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( )