diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-05-19 19:22:18 +0200 |
---|---|---|
committer | gregory guy <g-gregory@gmx.fr> | 2019-05-19 19:22:18 +0200 |
commit | 14bb845a29befcb8b11e2b55a43c58684d9acac0 (patch) | |
tree | a16035ab2089d9313ec91502cabe161e5d31e1f3 /keep | |
parent | 2663b431fc4f6e40655367b67ae6345f4f839ccf (diff) | |
download | keep-14bb845a.tar.gz keep-14bb845a.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'keep')
-rw-r--r-- | keep/CMakeLists.txt | 4 | ||||
-rw-r--r-- | keep/app/CMakeLists.txt | 70 | ||||
-rw-r--r-- | keep/common/CMakeLists.txt | 36 | ||||
-rw-r--r-- | keep/icons/CMakeLists.txt | 3 | ||||
-rw-r--r-- | keep/kded/CMakeLists.txt | 40 |
5 files changed, 153 insertions, 0 deletions
diff --git a/keep/CMakeLists.txt b/keep/CMakeLists.txt new file mode 100644 index 0000000..ca683ba --- /dev/null +++ b/keep/CMakeLists.txt @@ -0,0 +1,4 @@ +add_subdirectory( common ) +add_subdirectory( app ) +add_subdirectory( kded ) +add_subdirectory( icons ) diff --git a/keep/app/CMakeLists.txt b/keep/app/CMakeLists.txt new file mode 100644 index 0000000..36d9dda --- /dev/null +++ b/keep/app/CMakeLists.txt @@ -0,0 +1,70 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/keep/common + ${CMAKE_BINARY_DIR}/keep/common +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### keep (executable) + +tde_add_executable( ${PROJECT_NAME} AUTOMOC + + SOURCES + actionview.ui + forcebackupdialogview.ui + includeexcludeview.ui + advancedbackupconfigview.ui + generalconfigview.ui + addbackupwizard1view.ui + addbackupwizard2view.ui + addbackupwizard3view.ui + restorebackupwizard1view.ui + restorebackupwizard2view.ui + restorebackupwizard3view.ui + backuplistview.ui + main.cpp + keepmainwindow.cpp + backuplistwidget.cpp + restorebackupwizard.cpp + addbackupwizard.cpp + forcebackupdialog.cpp + backupconfigdialog.cpp + logview.ui + logdialog.cpp + includeexcludedialog.cpp + advancedbackupconfigdialog.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + keep-static + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons + +tde_install_icons( ${PROJECT_NAME} ) + + +##### other data + +install( + FILES keepui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) diff --git a/keep/common/CMakeLists.txt b/keep/common/CMakeLists.txt new file mode 100644 index 0000000..073906c --- /dev/null +++ b/keep/common/CMakeLists.txt @@ -0,0 +1,36 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### keep (static) + +tde_add_library( keep STATIC_PIC AUTOMOC + + SOURCES + keepsettings.kcfgc + backuplistviewitem.cpp + backup.cpp + backupconfig.cpp + rdblistener.cpp + rdbmanager.cpp + incrementlistviewitem.cpp + includeexcludeitem.cpp +) + + +##### other data + +install( + FILES keepsettings.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) diff --git a/keep/icons/CMakeLists.txt b/keep/icons/CMakeLists.txt new file mode 100644 index 0000000..4966817 --- /dev/null +++ b/keep/icons/CMakeLists.txt @@ -0,0 +1,3 @@ +##### icons + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons ) diff --git a/keep/kded/CMakeLists.txt b/keep/kded/CMakeLists.txt new file mode 100644 index 0000000..41b0e28 --- /dev/null +++ b/keep/kded/CMakeLists.txt @@ -0,0 +1,40 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/keep/common + ${CMAKE_BINARY_DIR}/keep/common +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kded_keep (kpart) + +tde_add_kpart( kded_keep AUTOMOC + + SOURCES + keepkded.cpp + keepkded.skel + LINK + tdecore-shared + tdeui-shared + tdeio-shared + tdeinit_kded-shared + keep-static + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kded +) |