diff --git a/clients/oxygen/CMakeLists.txt b/clients/oxygen/CMakeLists.txt index 18cc1c49d4..56e2cf3df7 100644 --- a/clients/oxygen/CMakeLists.txt +++ b/clients/oxygen/CMakeLists.txt @@ -1,7 +1,7 @@ ########### add version number into compilation defines # FIXME: CPACK_PACKAGE_VERSION_* are empty add_definitions (-DAPP_VERSION=\\\"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}\\\") -add_definitions( -DHAVE_X11=${X11_FOUND} ) +add_definitions(-DHAVE_X11=${X11_FOUND}) add_subdirectory(config) add_subdirectory(demo) add_subdirectory(data) @@ -23,23 +23,17 @@ set(kwin_oxygen_SRCS kde4_add_kcfg_files(kwin_oxygen_SRCS oxygenconfiguration.kcfgc ) kde4_add_plugin(kwin3_oxygen ${kwin_oxygen_SRCS}) -target_link_libraries( - kwin3_oxygen - KF5::KConfigWidgets - KF5::KGuiAddons - KF5::KI18n - KF5::KWindowSystem - KF5::KStyle # KStyle - ${Qt5Widgets_LIBRARIES} - ${Qt5X11Extras_LIBRARIES} - ${X11_X11_LIB} - ${XCB_XCB_LIBRARIES} - kdecorations - oxygenstyle - ) +target_link_libraries(kwin3_oxygen Qt5::Widgets ) +target_link_libraries(kwin3_oxygen KF5::KConfigWidgets KF5::KGuiAddons KF5::KI18n KF5::KWindowSystem KF5::KStyle) +target_link_libraries(kwin3_oxygen kdecorations oxygenstyle) -install(TARGETS kwin3_oxygen DESTINATION ${PLUGIN_INSTALL_DIR} ) +if(X11_FOUND) + target_link_libraries(kwin3_oxygen ${X11_X11_LIB} ${XCB_XCB_LIBRARIES}) + target_link_libraries(kwin3_oxygen Qt5::X11Extras) +endif() + +install(TARGETS kwin3_oxygen DESTINATION ${PLUGIN_INSTALL_DIR}) ########### install files ############### -install( FILES oxygenclient.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/ ) +install(FILES oxygenclient.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/) diff --git a/clients/oxygen/config/CMakeLists.txt b/clients/oxygen/config/CMakeLists.txt index 2333e5333b..5be31cd4a3 100644 --- a/clients/oxygen/config/CMakeLists.txt +++ b/clients/oxygen/config/CMakeLists.txt @@ -11,7 +11,7 @@ set(kwin_oxygen_config_PART_SRCS ../oxygenexceptionlist.cpp ) -kde4_add_kcfg_files(kwin_oxygen_config_PART_SRCS ../oxygenconfiguration.kcfgc ) +kde4_add_kcfg_files(kwin_oxygen_config_PART_SRCS ../oxygenconfiguration.kcfgc) set( kwin_oxygen_config_PART_FORMS ui/oxygenconfigurationui.ui @@ -26,29 +26,13 @@ add_library(kwin_oxygen_config ${kwin_oxygen_config_PART_SRCS} ${kwin_oxygen_config_PART_FORMS_HEADERS}) -target_link_libraries(kwin_oxygen_config - Qt5::Core - Qt5::Gui - Qt5::Widgets - Qt5::X11Extras - Qt5::DBus) - -target_link_libraries(kwin_oxygen_config - ${KConfig_LIBRARIES} - ${KCompletion_LIBRARIES} - ${KGuiAddons_LIBRARIES} - ${KWindowSystem_LIBRARIES} - ${KI18n_LIBRARIES} -) - -target_link_libraries(kwin_oxygen_config - kdecorations - oxygenstyle - oxygenstyleconfig -) +target_link_libraries(kwin_oxygen_config Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus) +target_link_libraries(kwin_oxygen_config KF5::KConfigCore KF5::KConfigGui KF5::KCompletion KF5::KGuiAddons KF5::KWindowSystem KF5::KI18n) +target_link_libraries(kwin_oxygen_config kdecorations oxygenstyle oxygenstyleconfig) if(X11_FOUND) - target_link_libraries(kwin_oxygen_config ${X11_LIBRARIES} ) + target_link_libraries(kwin_oxygen_config ${X11_LIBRARIES}) + target_link_libraries(kwin_oxygen_config Qt5::X11Extras) endif() -install(TARGETS kwin_oxygen_config DESTINATION ${QT_PLUGIN_INSTALL_DIR}/kf5 ) +install(TARGETS kwin_oxygen_config DESTINATION ${QT_PLUGIN_INSTALL_DIR}/kf5) diff --git a/clients/oxygen/demo/CMakeLists.txt b/clients/oxygen/demo/CMakeLists.txt index fc6877be22..22a23cb81b 100644 --- a/clients/oxygen/demo/CMakeLists.txt +++ b/clients/oxygen/demo/CMakeLists.txt @@ -8,29 +8,16 @@ set(oxygen_shadow_demo_SOURCES set(oxygen_shadow_demo_FORMS ui/oxygenshadowdemo.ui) -qt5_wrap_ui(oxygen_shadow_demo_FORMS_HEADERS ${oxygen_shadow_demo_FORMS} ) +qt5_wrap_ui(oxygen_shadow_demo_FORMS_HEADERS ${oxygen_shadow_demo_FORMS}) -add_executable(oxygen-shadow-demo - ${oxygen_shadow_demo_SOURCES} - ${oxygen_shadow_demo_FORMS_HEADERS} -) - -target_link_libraries(oxygen-shadow-demo - Qt5::Core - Qt5::Gui - Qt5::Widgets - Qt5::DBus -) - -target_link_libraries(oxygen-shadow-demo - ${KI18n_LIBRARIES} - KF5::KConfigWidgets -) +add_executable(oxygen-shadow-demo ${oxygen_shadow_demo_SOURCES} ${oxygen_shadow_demo_FORMS_HEADERS}) +target_link_libraries(oxygen-shadow-demo Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus) +target_link_libraries(oxygen-shadow-demo KF5::KI18n KF5::KConfigWidgets) target_link_libraries(oxygen-shadow-demo oxygenstyle ) if(X11_FOUND) - target_link_libraries(oxygen-shadow-demo ${X11_LIBRARIES} ) + target_link_libraries(oxygen-shadow-demo ${X11_LIBRARIES}) endif() -install(TARGETS oxygen-shadow-demo ${INSTALL_TARGETS_DEFAULT_ARGS} ) +install(TARGETS oxygen-shadow-demo ${INSTALL_TARGETS_DEFAULT_ARGS})