summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/exr
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/exr
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/exr')
-rw-r--r--kfile-plugins/exr/CMakeLists.txt38
-rw-r--r--kfile-plugins/exr/ConfigureChecks.cmake16
2 files changed, 54 insertions, 0 deletions
diff --git a/kfile-plugins/exr/CMakeLists.txt b/kfile-plugins/exr/CMakeLists.txt
new file mode 100644
index 00000000..84f526c5
--- /dev/null
+++ b/kfile-plugins/exr/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (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}
+ ${OPENEXR_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_exr.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_exr (module) #########################
+
+tde_add_kpart( kfile_exr AUTOMOC
+ SOURCES kfile_exr.cpp
+ LINK kio-shared ${OPENEXR_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/exr/ConfigureChecks.cmake b/kfile-plugins/exr/ConfigureChecks.cmake
new file mode 100644
index 00000000..193173c2
--- /dev/null
+++ b/kfile-plugins/exr/ConfigureChecks.cmake
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# OpenEXR
+pkg_search_module( OPENEXR OpenEXR )
+if( NOT OPENEXR_FOUND )
+ tde_message_fatal( "OpenEXR is required, but was not found on your system" )
+endif( )