summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/pdf
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/pdf
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/pdf')
-rw-r--r--kfile-plugins/pdf/CMakeLists.txt38
-rw-r--r--kfile-plugins/pdf/ConfigureChecks.cmake16
2 files changed, 54 insertions, 0 deletions
diff --git a/kfile-plugins/pdf/CMakeLists.txt b/kfile-plugins/pdf/CMakeLists.txt
new file mode 100644
index 00000000..748b70ed
--- /dev/null
+++ b/kfile-plugins/pdf/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}
+ ${POPPLER_QT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_pdf.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_pdf (module) #########################
+
+tde_add_kpart( kfile_pdf AUTOMOC
+ SOURCES kfile_pdf.cpp
+ LINK kio-shared ${POPPLER_QT_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/pdf/ConfigureChecks.cmake b/kfile-plugins/pdf/ConfigureChecks.cmake
new file mode 100644
index 00000000..28a617f1
--- /dev/null
+++ b/kfile-plugins/pdf/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
+#
+#################################################
+
+# poppler-qt
+pkg_search_module( POPPLER_QT poppler-qt )
+if( NOT POPPLER_QT_FOUND )
+ tde_message_fatal( "poppler-qt is required, but was not found on your system" )
+endif( )