diff options
Diffstat (limited to 'kfile-plugins/pdf')
-rw-r--r-- | kfile-plugins/pdf/CMakeLists.txt | 38 | ||||
-rw-r--r-- | kfile-plugins/pdf/ConfigureChecks.cmake | 16 |
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( ) |