From 4b44022baa6d33e9fee21a4e64b90adf9fb9eba7 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 11 Dec 2014 16:59:17 +0100 Subject: [PATCH] separate config sources and plugin sources for readibility and because it might move to own library in the future --- windec/kdecoration2/CMakeLists.txt | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/windec/kdecoration2/CMakeLists.txt b/windec/kdecoration2/CMakeLists.txt index 1921b368..36954c57 100644 --- a/windec/kdecoration2/CMakeLists.txt +++ b/windec/kdecoration2/CMakeLists.txt @@ -28,26 +28,33 @@ endif() configure_file(config-breeze.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-breeze.h ) ################# newt target ################# +### plugin classes set(breezedecoration_SRCS breezecolorsettings.cpp breezebutton.cpp breezedecoration.cpp breezehelper.cpp - breezesizegrip.cpp - config/breezeconfig.cpp - config/breezeconfigwidget.cpp) + breezesizegrip.cpp) kconfig_add_kcfg_files(breezedecoration_SRCS breezesettings.kcfgc) -set(breezedecoration_PART_FORMS +### config classes +### they are kept separately because they might move in a separate library in the future +set(breezedecoration_config_SRCS + config/breezeconfig.cpp + config/breezeconfigwidget.cpp) + +set(breezedecoration_config_PART_FORMS config/ui/breezeconfigurationui.ui ) -ki18n_wrap_ui(breezedecoration_PART_FORMS_HEADERS ${breezedecoration_PART_FORMS}) +ki18n_wrap_ui(breezedecoration_config_PART_FORMS_HEADERS ${breezedecoration_config_PART_FORMS}) +### build library add_library(breezedecoration MODULE ${breezedecoration_SRCS} - ${breezedecoration_PART_FORMS_HEADERS}) + ${breezedecoration_config_SRCS} + ${breezedecoration_config_PART_FORMS_HEADERS}) target_link_libraries(breezedecoration PUBLIC