From b6fc43ccd522dfbc1e215b12adb8208c156bbd31 Mon Sep 17 00:00:00 2001 From: samelian Date: Sun, 23 Jan 2011 23:42:11 +0000 Subject: [kdebase] initial cmake support git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1216551 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeprint/CMakeLists.txt | 17 +++++++++++++ kdeprint/kdeprint_part/CMakeLists.txt | 37 +++++++++++++++++++++++++++++ kdeprint/kdeprintfax/CMakeLists.txt | 42 +++++++++++++++++++++++++++++++++ kdeprint/kjobviewer/CMakeLists.txt | 37 +++++++++++++++++++++++++++++ kdeprint/kprinter/CMakeLists.txt | 34 ++++++++++++++++++++++++++ kdeprint/printmgr/CMakeLists.txt | 37 +++++++++++++++++++++++++++++ kdeprint/slave/CMakeLists.txt | 39 ++++++++++++++++++++++++++++++ kdeprint/slave/mimetypes/CMakeLists.txt | 16 +++++++++++++ kdeprint/slave/templates/CMakeLists.txt | 25 ++++++++++++++++++++ 9 files changed, 284 insertions(+) create mode 100644 kdeprint/CMakeLists.txt create mode 100644 kdeprint/kdeprint_part/CMakeLists.txt create mode 100644 kdeprint/kdeprintfax/CMakeLists.txt create mode 100644 kdeprint/kjobviewer/CMakeLists.txt create mode 100644 kdeprint/kprinter/CMakeLists.txt create mode 100644 kdeprint/printmgr/CMakeLists.txt create mode 100644 kdeprint/slave/CMakeLists.txt create mode 100644 kdeprint/slave/mimetypes/CMakeLists.txt create mode 100644 kdeprint/slave/templates/CMakeLists.txt (limited to 'kdeprint') diff --git a/kdeprint/CMakeLists.txt b/kdeprint/CMakeLists.txt new file mode 100644 index 000000000..8cbe437bb --- /dev/null +++ b/kdeprint/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (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( printmgr ) +add_subdirectory( kjobviewer ) +add_subdirectory( kprinter ) +add_subdirectory( kdeprintfax ) +add_subdirectory( slave ) +add_subdirectory( kdeprint_part ) diff --git a/kdeprint/kdeprint_part/CMakeLists.txt b/kdeprint/kdeprint_part/CMakeLists.txt new file mode 100644 index 000000000..8aa740d6f --- /dev/null +++ b/kdeprint/kdeprint_part/CMakeLists.txt @@ -0,0 +1,37 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( -D_KDEPRINT_COMPILE ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kdeprint_part.rc DESTINATION ${DATA_INSTALL_DIR}/kdeprint_part ) +install( FILES kdeprint_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libkdeprint_part (module) ################# + +tde_add_kpart( libkdeprint_part AUTOMOC + SOURCES printpart.cpp + LINK kdeprint_management-shared kparts-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdeprint/kdeprintfax/CMakeLists.txt b/kdeprint/kdeprintfax/CMakeLists.txt new file mode 100644 index 000000000..9c6e5095f --- /dev/null +++ b/kdeprint/kdeprintfax/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (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} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( kdeprintfax ) +tde_install_icons( abentry DESTINATION ${DATA_INSTALL_DIR}/kdeprintfax/icons ) +install( FILES kdeprintfax.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kdeprintfaxui.rc faxfilters DESTINATION ${DATA_INSTALL_DIR}/kdeprintfax ) +install( PROGRAMS anytops DESTINATION ${DATA_INSTALL_DIR}/kdeprintfax ) + + +##### kdeprintfax (executable) ################## + +tde_add_executable( kdeprintfax AUTOMOC + SOURCES + main.cpp kdeprintfax.cpp faxab.cpp faxctrl.cpp + confgeneral.cpp configdlg.cpp conffax.cpp + confsystem.cpp conffilters.cpp filterdlg.cpp + defcmds.cpp + LINK kabc-shared kdeprint-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdeprint/kjobviewer/CMakeLists.txt b/kdeprint/kjobviewer/CMakeLists.txt new file mode 100644 index 000000000..1bba4ea65 --- /dev/null +++ b/kdeprint/kjobviewer/CMakeLists.txt @@ -0,0 +1,37 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( -D_KDEPRINT_COMPILE ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( kjobviewer ) +install( FILES kjobviewer.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kjobviewerui.rc DESTINATION ${DATA_INSTALL_DIR}/kjobviewer ) + + +##### kjobviewer (kdeinit) ###################### + +tde_add_kdeinit_executable( kjobviewer AUTOMOC + SOURCES kjobviewer.cpp main.cpp + LINK kdeprint_management-shared +) diff --git a/kdeprint/kprinter/CMakeLists.txt b/kdeprint/kprinter/CMakeLists.txt new file mode 100644 index 000000000..121c97f5e --- /dev/null +++ b/kdeprint/kprinter/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( CheckFunctionExists ) +check_function_exists( sigset HAVE_SIGACTION ) +check_function_exists( sigaction HAVE_SIGSET ) + +add_definitions( -D_KDEPRINT_COMPILE ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kprinter (kdeinit) ######################## + +tde_add_kdeinit_executable( kprinter AUTOMOC + SOURCES main.cpp printwrapper.cpp + LINK kdeprint-shared +) diff --git a/kdeprint/printmgr/CMakeLists.txt b/kdeprint/printmgr/CMakeLists.txt new file mode 100644 index 000000000..847996abf --- /dev/null +++ b/kdeprint/printmgr/CMakeLists.txt @@ -0,0 +1,37 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( -D_KDEPRINT_COMPILE ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( printmgr ) +install( FILES printers.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) + + +##### kcm_printmgr (module) ##################### + +tde_add_kpart( kcm_printmgr AUTOMOC + SOURCES kcmprintmgr.cpp + LINK kdeprint_management-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdeprint/slave/CMakeLists.txt b/kdeprint/slave/CMakeLists.txt new file mode 100644 index 000000000..cfac6d998 --- /dev/null +++ b/kdeprint/slave/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( -D_KDEPRINT_COMPILE ) + +add_subdirectory( mimetypes ) +add_subdirectory( templates ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES print.protocol printdb.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### kio_print (module) ######################## + +tde_add_kpart( kio_print AUTOMOC + SOURCES kio_print.cpp + LINK kdeprint-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdeprint/slave/mimetypes/CMakeLists.txt b/kdeprint/slave/mimetypes/CMakeLists.txt new file mode 100644 index 000000000..02d289c15 --- /dev/null +++ b/kdeprint/slave/mimetypes/CMakeLists.txt @@ -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 +# +################################################# + +install( FILES + folder.desktop printer.desktop class.desktop + manager.desktop jobs.desktop driver.desktop + printermodel.desktop + DESTINATION ${MIME_INSTALL_DIR}/print ) diff --git a/kdeprint/slave/templates/CMakeLists.txt b/kdeprint/slave/templates/CMakeLists.txt new file mode 100644 index 000000000..31f11cf6a --- /dev/null +++ b/kdeprint/slave/templates/CMakeLists.txt @@ -0,0 +1,25 @@ +################################################# +# +# (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 + class.template printer.template pseudo.template + jobs.template driver.template bar-bottom-left.png + bar-top-middle.png box-bottom-middle.png + box-top-middle.png bar-bottom-middle.png + bar-top-right.png box-bottom-right.png + box-top-right.png bar-bottom-right.png + bottom-left.png box-centre-kdeprint.png + top-left.png bar-middle-left.png bottom-middle.png + box-middle-left.png top-middle.png bar-middle-right.png + bottom-right.png box-middle-right.png top-right-kdeprint.png + bar-top-left.png box-bottom-left.png box-top-left.png + htmlstyles.css + DESTINATION ${DATA_INSTALL_DIR}/kdeprint/template ) -- cgit v1.2.1