From 76baa6e505aa4e0d404a2b81addcc3f2599075fe Mon Sep 17 00:00:00 2001 From: samelian Date: Sat, 7 May 2011 20:40:46 +0000 Subject: [PATCH] [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 --- CMakeLists.txt | 15 ++++ kfax/CMakeLists.txt | 39 +++++++++++ kfaxview/CMakeLists.txt | 53 ++++++++++++++ kfaxview/libkfaximage/CMakeLists.txt | 28 ++++++++ kfile-plugins/CMakeLists.txt | 30 ++++++++ kfile-plugins/bmp/CMakeLists.txt | 34 +++++++++ kfile-plugins/dds/CMakeLists.txt | 35 ++++++++++ kfile-plugins/dvi/CMakeLists.txt | 35 ++++++++++ kfile-plugins/exr/CMakeLists.txt | 38 ++++++++++ kfile-plugins/exr/ConfigureChecks.cmake | 16 +++++ kfile-plugins/gif/CMakeLists.txt | 34 +++++++++ kfile-plugins/ico/CMakeLists.txt | 35 ++++++++++ kfile-plugins/jpeg/CMakeLists.txt | 35 ++++++++++ kfile-plugins/pcx/CMakeLists.txt | 35 ++++++++++ kfile-plugins/pdf/CMakeLists.txt | 38 ++++++++++ kfile-plugins/pdf/ConfigureChecks.cmake | 16 +++++ kfile-plugins/png/CMakeLists.txt | 34 +++++++++ kfile-plugins/pnm/CMakeLists.txt | 35 ++++++++++ kfile-plugins/ps/CMakeLists.txt | 37 ++++++++++ kfile-plugins/raw/CMakeLists.txt | 35 ++++++++++ kfile-plugins/rgb/CMakeLists.txt | 35 ++++++++++ kfile-plugins/tga/CMakeLists.txt | 35 ++++++++++ kfile-plugins/tiff/CMakeLists.txt | 37 ++++++++++ kfile-plugins/tiff/ConfigureChecks.cmake | 21 ++++++ kfile-plugins/xbm/CMakeLists.txt | 35 ++++++++++ kfile-plugins/xpm/CMakeLists.txt | 35 ++++++++++ kghostview/CMakeLists.txt | 69 +++++++++++++++++++ kghostview/data/CMakeLists.txt | 12 ++++ kghostview/dscparse/CMakeLists.txt | 28 ++++++++ kghostview/{ => dscparse}/dscparse.cpp | 0 kghostview/{ => dscparse}/dscparse.h | 0 .../{ => dscparse}/dscparse_adapter.cpp | 0 kghostview/{ => dscparse}/dscparse_adapter.h | 0 33 files changed, 964 insertions(+) create mode 100644 kfax/CMakeLists.txt create mode 100644 kfaxview/CMakeLists.txt create mode 100644 kfaxview/libkfaximage/CMakeLists.txt create mode 100644 kfile-plugins/CMakeLists.txt create mode 100644 kfile-plugins/bmp/CMakeLists.txt create mode 100644 kfile-plugins/dds/CMakeLists.txt create mode 100644 kfile-plugins/dvi/CMakeLists.txt create mode 100644 kfile-plugins/exr/CMakeLists.txt create mode 100644 kfile-plugins/exr/ConfigureChecks.cmake create mode 100644 kfile-plugins/gif/CMakeLists.txt create mode 100644 kfile-plugins/ico/CMakeLists.txt create mode 100644 kfile-plugins/jpeg/CMakeLists.txt create mode 100644 kfile-plugins/pcx/CMakeLists.txt create mode 100644 kfile-plugins/pdf/CMakeLists.txt create mode 100644 kfile-plugins/pdf/ConfigureChecks.cmake create mode 100644 kfile-plugins/png/CMakeLists.txt create mode 100644 kfile-plugins/pnm/CMakeLists.txt create mode 100644 kfile-plugins/ps/CMakeLists.txt create mode 100644 kfile-plugins/raw/CMakeLists.txt create mode 100644 kfile-plugins/rgb/CMakeLists.txt create mode 100644 kfile-plugins/tga/CMakeLists.txt create mode 100644 kfile-plugins/tiff/CMakeLists.txt create mode 100644 kfile-plugins/tiff/ConfigureChecks.cmake create mode 100644 kfile-plugins/xbm/CMakeLists.txt create mode 100644 kfile-plugins/xpm/CMakeLists.txt create mode 100644 kghostview/CMakeLists.txt create mode 100644 kghostview/data/CMakeLists.txt create mode 100644 kghostview/dscparse/CMakeLists.txt rename kghostview/{ => dscparse}/dscparse.cpp (100%) rename kghostview/{ => dscparse}/dscparse.h (100%) rename kghostview/{ => dscparse}/dscparse_adapter.cpp (100%) rename kghostview/{ => dscparse}/dscparse_adapter.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6938db02..299db935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,9 @@ tde_setup_paths( ) option( WITH_T1LIB "Enable t1lib support" OFF ) option( WITH_LIBPAPER "Enable libpaper support" OFF ) +OPTION( WITH_TIFF "Enable tiff support (kfile-plugins)" OFF ) +OPTION( WITH_OPENEXR "Enable openexr support (kfile-plugins)" OFF ) +OPTION( WITH_PDF "Enable pdf support (kfile-plugins)" OFF ) ##### user requested modules #################### @@ -54,6 +57,10 @@ option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) option( BUILD_KAMERA "Build kamera" ${BUILD_ALL} ) option( BUILD_KCOLOREDIT "Build kcoloredit" ${BUILD_ALL} ) option( BUILD_KDVI "Build kdvi" ${BUILD_ALL} ) +option( BUILD_KFAX "Build kfax" ${BUILD_ALL} ) +option( BUILD_KFAXVIEW "Build kfaxview" ${BUILD_ALL} ) +option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} ) +option( BUILD_KGHOSTVIEW "Build kghostview" ${BUILD_ALL} ) option( BUILD_KVIEW "Build kview" ${BUILD_ALL} ) option( BUILD_KRULER "Build kruler" ${BUILD_ALL} ) option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} ) @@ -79,11 +86,19 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) ##### kdegraphics directories ################### +if( BUILD_KFILE_PLUGINS OR BUILD_GHOSTKVIEW ) + add_subdirectory( kghostview/dscparse ) +endif( ) + tde_conditional_add_subdirectory( BUILD_DOC doc ) tde_conditional_add_subdirectory( BUILD_KAMERA kamera ) tde_conditional_add_subdirectory( BUILD_KCOLOREDIT kcoloredit ) tde_conditional_add_subdirectory( BUILD_KDVI kdvi ) +tde_conditional_add_subdirectory( BUILD_KFAX kfax ) +tde_conditional_add_subdirectory( BUILD_KFAXVIEW kfaxview ) +tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins ) tde_conditional_add_subdirectory( BUILD_KVIEW kview ) +tde_conditional_add_subdirectory( BUILD_KGHOSTVIEW kghostview ) tde_conditional_add_subdirectory( BUILD_KRULER kruler ) tde_conditional_add_subdirectory( BUILD_KPDF kpdf ) tde_conditional_add_subdirectory( BUILD_KSVG ksvg ) diff --git a/kfax/CMakeLists.txt b/kfax/CMakeLists.txt new file mode 100644 index 00000000..ef71229f --- /dev/null +++ b/kfax/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### other data ################################# + +install( FILES kfax.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kfax.tif kfaxlogo.xpm DESTINATION ${DATA_INSTALL_DIR}/kfax/pics ) +install( FILES kfaxui.rc DESTINATION ${DATA_INSTALL_DIR}/kfax ) + + +#### kruler (executable) ######################## + +tde_add_executable( kfax AUTOMOC + SOURCES + options.cpp kfax.cpp faxexpand.cpp faxinit.cpp + faxinput.cpp viewfax.cpp kfax_printsettings.cpp + LINK kdeui-shared kdeprint-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kfaxview/CMakeLists.txt b/kfaxview/CMakeLists.txt new file mode 100644 index 00000000..1188aa63 --- /dev/null +++ b/kfaxview/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_import( kviewshell ) + +add_subdirectory( libkfaximage ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/libkfaximage + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/kviewshell + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### other data ################################# + +tde_install_icons( kfaxview ) +install( FILES kfaxview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES ${CMAKE_SOURCE_DIR}/kviewshell/kviewshell.rc DESTINATION ${DATA_INSTALL_DIR}/kviewshell ) +install( FILES kfaxmultipage.desktop kfaxmultipage_tiff.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfaxviewpart (module) ###################### + +tde_add_kpart( kfaxviewpart AUTOMOC + SOURCES faxmultipage.cpp faxrenderer.cpp + LINK kmultipage-shared kfaximage-static kparts-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### kfaxview (executable) ###################### + +tde_add_executable( kfaxview AUTOMOC + SOURCES main.cpp + LINK kviewshell-static kio-shared kparts-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kfaxview/libkfaximage/CMakeLists.txt b/kfaxview/libkfaximage/CMakeLists.txt new file mode 100644 index 00000000..aebad1a6 --- /dev/null +++ b/kfaxview/libkfaximage/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### kfaximage (library) ######################## + +tde_add_library( kfaximage STATIC_PIC AUTOMOC + SOURCES kfaximage.cpp faxexpand.cpp faxinit.cpp +) diff --git a/kfile-plugins/CMakeLists.txt b/kfile-plugins/CMakeLists.txt new file mode 100644 index 00000000..c35c329e --- /dev/null +++ b/kfile-plugins/CMakeLists.txt @@ -0,0 +1,30 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( dvi ) +add_subdirectory( png ) +add_subdirectory( ps ) +add_subdirectory( jpeg ) +add_subdirectory( xbm ) +add_subdirectory( xpm ) +add_subdirectory( bmp ) +add_subdirectory( tga ) +add_subdirectory( rgb ) +add_subdirectory( ico ) +add_subdirectory( pcx ) +add_subdirectory( pnm ) +add_subdirectory( dds ) +add_subdirectory( gif ) +add_subdirectory( raw ) + +tde_conditional_add_subdirectory( WITH_TIFF tiff ) +tde_conditional_add_subdirectory( WITH_OPENEXR exr ) +tde_conditional_add_subdirectory( WITH_PDF pdf ) diff --git a/kfile-plugins/bmp/CMakeLists.txt b/kfile-plugins/bmp/CMakeLists.txt new file mode 100644 index 00000000..c1c46db6 --- /dev/null +++ b/kfile-plugins/bmp/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_bmp.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_bmp (module) ######################### + +tde_add_kpart( kfile_bmp AUTOMOC + SOURCES kfile_bmp.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/dds/CMakeLists.txt b/kfile-plugins/dds/CMakeLists.txt new file mode 100644 index 00000000..77716a5d --- /dev/null +++ b/kfile-plugins/dds/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_dds.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_dds (module) ########################## + +tde_add_kpart( kfile_dds AUTOMOC + SOURCES kfile_dds.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/dvi/CMakeLists.txt b/kfile-plugins/dvi/CMakeLists.txt new file mode 100644 index 00000000..116d6032 --- /dev/null +++ b/kfile-plugins/dvi/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_dvi.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_dvi (module) ######################### + +tde_add_kpart( kfile_dvi AUTOMOC + SOURCES kfile_dvi.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) 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( ) diff --git a/kfile-plugins/gif/CMakeLists.txt b/kfile-plugins/gif/CMakeLists.txt new file mode 100644 index 00000000..f2fc4320 --- /dev/null +++ b/kfile-plugins/gif/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_gif.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_gif (module) ######################### +tde_add_kpart( kfile_gif AUTOMOC + SOURCES kfile_gif.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/ico/CMakeLists.txt b/kfile-plugins/ico/CMakeLists.txt new file mode 100644 index 00000000..1fdbed2b --- /dev/null +++ b/kfile-plugins/ico/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_ico.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_ico (module) ######################## + +tde_add_kpart( kfile_ico AUTOMOC + SOURCES kfile_ico.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/jpeg/CMakeLists.txt b/kfile-plugins/jpeg/CMakeLists.txt new file mode 100644 index 00000000..a35543d7 --- /dev/null +++ b/kfile-plugins/jpeg/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_jpeg.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_jpeg (module) ######################## + +tde_add_kpart( kfile_jpeg AUTOMOC + SOURCES kfile_jpeg.cpp exif.cpp kfile_setcomment.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/pcx/CMakeLists.txt b/kfile-plugins/pcx/CMakeLists.txt new file mode 100644 index 00000000..efabc58e --- /dev/null +++ b/kfile-plugins/pcx/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_pcx.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_pcx (module) ######################### + +tde_add_kpart( kfile_pcx AUTOMOC + SOURCES kfile_pcx.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) 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( ) diff --git a/kfile-plugins/png/CMakeLists.txt b/kfile-plugins/png/CMakeLists.txt new file mode 100644 index 00000000..3281651a --- /dev/null +++ b/kfile-plugins/png/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_png.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_png (module) ######################### +tde_add_kpart( kfile_png AUTOMOC + SOURCES kfile_png.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/pnm/CMakeLists.txt b/kfile-plugins/pnm/CMakeLists.txt new file mode 100644 index 00000000..34e78ddf --- /dev/null +++ b/kfile-plugins/pnm/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_pnm.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_pnm (module) ######################### + +tde_add_kpart( kfile_pnm AUTOMOC + SOURCES kfile_pnm.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/ps/CMakeLists.txt b/kfile-plugins/ps/CMakeLists.txt new file mode 100644 index 00000000..c9ff9de9 --- /dev/null +++ b/kfile-plugins/ps/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_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/kghostview + ${CMAKE_SOURCE_DIR}/kghostview/dscparse + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### other data ################################# + +install( FILES kfile_ps.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_ps (module) ######################## + +tde_add_kpart( kfile_ps AUTOMOC + SOURCES kfile_ps.cpp + LINK dscparse-static kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/raw/CMakeLists.txt b/kfile-plugins/raw/CMakeLists.txt new file mode 100644 index 00000000..9f7aa544 --- /dev/null +++ b/kfile-plugins/raw/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_raw.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_raw (module) ######################### + +tde_add_kpart( kfile_raw AUTOMOC + SOURCES kcamerarawplugin.cpp parse.c + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/rgb/CMakeLists.txt b/kfile-plugins/rgb/CMakeLists.txt new file mode 100644 index 00000000..be9870d1 --- /dev/null +++ b/kfile-plugins/rgb/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_rgb.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_rgb (module) ######################### + +tde_add_kpart( kfile_rgb AUTOMOC + SOURCES kfile_rgb.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/tga/CMakeLists.txt b/kfile-plugins/tga/CMakeLists.txt new file mode 100644 index 00000000..eddb0d44 --- /dev/null +++ b/kfile-plugins/tga/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_tga.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_tga (module) ######################### + +tde_add_kpart( kfile_tga AUTOMOC + SOURCES kfile_tga.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) 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( ) diff --git a/kfile-plugins/xbm/CMakeLists.txt b/kfile-plugins/xbm/CMakeLists.txt new file mode 100644 index 00000000..37a9aa6b --- /dev/null +++ b/kfile-plugins/xbm/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_xbm.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_xbm (module) ######################## + +tde_add_kpart( kfile_xbm AUTOMOC + SOURCES kfile_xbm.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kfile-plugins/xpm/CMakeLists.txt b/kfile-plugins/xpm/CMakeLists.txt new file mode 100644 index 00000000..0e401288 --- /dev/null +++ b/kfile-plugins/xpm/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +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_xpm.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kfile_xpm (module) ######################### + +tde_add_kpart( kfile_xpm AUTOMOC + SOURCES kfile_xpm.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kghostview/CMakeLists.txt b/kghostview/CMakeLists.txt new file mode 100644 index 00000000..f984f119 --- /dev/null +++ b/kghostview/CMakeLists.txt @@ -0,0 +1,69 @@ +################################################# +# +# (C) 2010-2011 Calvin Morrison +# mutantturkey@gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( data ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/dscparse + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### other data ################################# + +tde_install_icons( kghostview ) +install( FILES kghostview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kghostview_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kgv_part.rc kghostviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kghostview ) +install( FILES kghostview.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) +install( FILES kghostview.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) +install( PROGRAMS update-to-xt-names.pl DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) + + +#### kghostviewlib (shared) ##################### + +tde_add_library( kghostviewlib SHARED AUTOMOC + SOURCES + kgvshell.cpp kgvdocument.cpp kgv_miniwidget.cpp + marklist.cpp logwindow.cpp infodialog.cpp kgvpageview.cpp ps.c + kgv_view.cpp scrollbox.cpp kgvpagedecorator.cpp + kgvconfigdialog.cpp kgvmainwidget.cpp kdscerrordialog.cpp + displayoptions.cpp kpswidget.cpp fullscreenfilter.cpp + kgvfactory.cpp generalsettingswidget.ui gssettingswidget.ui + thumbnailservice.cpp configuration.kcfgc + LINK dscparse-static kdeprint-shared kparts-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +#### kghostviewpart (module) #################### + +tde_add_kpart( kghostviewpart AUTOMOC + SOURCES part_init.cpp + LINK kghostviewlib-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### kghostview (executable) #################### + +tde_add_executable( kghostview AUTOMOC + SOURCES main.cpp + LINK kghostviewlib-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kghostview/data/CMakeLists.txt b/kghostview/data/CMakeLists.txt new file mode 100644 index 00000000..5ff908e4 --- /dev/null +++ b/kghostview/data/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES pdf_sec.ps DESTINATION ${DATA_INSTALL_DIR}/kghostview ) diff --git a/kghostview/dscparse/CMakeLists.txt b/kghostview/dscparse/CMakeLists.txt new file mode 100644 index 00000000..a8136888 --- /dev/null +++ b/kghostview/dscparse/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + #${CMAKE_CURRENT_SOURCE_DIR} + #${CMAKE_BINARY_DIR} + #${CMAKE_SOURCE_DIR} + #${CMAKE_SOURCE_DIR} + #${CMAKE_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +#### dscparse (static) ########################## + +tde_add_library( dscparse STATIC_PIC + SOURCES dscparse.cpp dscparse_adapter.cpp +) diff --git a/kghostview/dscparse.cpp b/kghostview/dscparse/dscparse.cpp similarity index 100% rename from kghostview/dscparse.cpp rename to kghostview/dscparse/dscparse.cpp diff --git a/kghostview/dscparse.h b/kghostview/dscparse/dscparse.h similarity index 100% rename from kghostview/dscparse.h rename to kghostview/dscparse/dscparse.h diff --git a/kghostview/dscparse_adapter.cpp b/kghostview/dscparse/dscparse_adapter.cpp similarity index 100% rename from kghostview/dscparse_adapter.cpp rename to kghostview/dscparse/dscparse_adapter.cpp diff --git a/kghostview/dscparse_adapter.h b/kghostview/dscparse/dscparse_adapter.h similarity index 100% rename from kghostview/dscparse_adapter.h rename to kghostview/dscparse/dscparse_adapter.h