From 5351c3e573802130a903c9ba659aaf33e26e851d Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Fri, 25 Jun 2021 21:09:25 +0300 Subject: Added CMake build rules Signed-off-by: Mavridis Philippe --- src/CMakeLists.txt | 53 +++++++++++++++++++++++++++++++++++++++++++++++ src/config/CMakeLists.txt | 28 +++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 src/CMakeLists.txt create mode 100644 src/config/CMakeLists.txt (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..50a6b1d --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,53 @@ +tde_import( twin ) + +add_subdirectory( config ) + +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_LIBRARY_DIRS} +) + + +##### twin3_SUSE2 (kpart) + +tde_add_kpart( twin3_SUSE2 AUTOMOC + + SOURCES + SUSE2.cpp + SUSE2client.cpp + SUSE2button.cpp + shadow.cpp + misc.cpp + LINK + tdecore-shared + tdeui-shared + tdecorations-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES SUSE2.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin +) + +install( + FILES titlebar_decor.png + DESTINATION ${DATA_INSTALL_DIR}/twin/pics +) + +install( + FILES SUSE2.kcsrc + DESTINATION ${DATA_INSTALL_DIR}/tdedisplay/color-schemes +) diff --git a/src/config/CMakeLists.txt b/src/config/CMakeLists.txt new file mode 100644 index 0000000..2514cf9 --- /dev/null +++ b/src/config/CMakeLists.txt @@ -0,0 +1,28 @@ +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_LIBRARY_DIRS} +) + + +##### twin_SUSE2_config (kpart) + +tde_add_kpart( twin_SUSE2_config AUTOMOC + + SOURCES + config.cpp + configdialog.ui + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) -- cgit v1.2.1