Changeset View
Changeset View
Standalone View
Standalone View
kdecoration/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN="breeze_kwin_deco") | 1 | add_definitions(-DTRANSLATION_DOMAIN="breeze_kwin_deco") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | find_package(KF5 REQUIRED COMPONENTS CoreAddons GuiAddons ConfigWidgets WindowSystem I18n) | 3 | find_package(KF5 REQUIRED COMPONENTS CoreAddons GuiAddons ConfigWidgets WindowSystem I18n) | ||
4 | find_package(Qt5 CONFIG REQUIRED COMPONENTS DBus) | 4 | find_package(Qt5 CONFIG REQUIRED COMPONENTS DBus) | ||
5 | 5 | | |||
6 | ### XCB | 6 | ### XCB | ||
7 | find_package(XCB COMPONENTS XCB) | 7 | find_package(XCB COMPONENTS XCB) | ||
8 | set_package_properties(XCB PROPERTIES | 8 | set_package_properties(XCB PROPERTIES | ||
9 | DESCRIPTION "X protocol C-language Binding" | 9 | DESCRIPTION "X protocol C-language Binding" | ||
10 | URL "http://xcb.freedesktop.org" | 10 | URL "http://xcb.freedesktop.org" | ||
11 | TYPE OPTIONAL | 11 | TYPE OPTIONAL | ||
12 | PURPOSE "Required to pass style properties to native Windows on X11 Platform" | 12 | PURPOSE "Required to pass style properties to native Windows on X11 Platform" | ||
13 | ) | 13 | ) | ||
14 | 14 | | |||
15 | ### FFTW3 | ||||
16 | find_package(FFTW REQUIRED) | ||||
17 | | ||||
15 | if(UNIX AND NOT APPLE) | 18 | if(UNIX AND NOT APPLE) | ||
16 | 19 | | |||
17 | set(BREEZE_HAVE_X11 ${XCB_XCB_FOUND}) | 20 | set(BREEZE_HAVE_X11 ${XCB_XCB_FOUND}) | ||
18 | if (XCB_XCB_FOUND) | 21 | if (XCB_XCB_FOUND) | ||
19 | find_package(Qt5 REQUIRED CONFIG COMPONENTS X11Extras) | 22 | find_package(Qt5 REQUIRED CONFIG COMPONENTS X11Extras) | ||
20 | endif() | 23 | endif() | ||
21 | 24 | | |||
22 | else() | 25 | else() | ||
23 | 26 | | |||
24 | set(BREEZE_HAVE_X11 FALSE) | 27 | set(BREEZE_HAVE_X11 FALSE) | ||
25 | 28 | | |||
26 | endif() | 29 | endif() | ||
27 | 30 | | |||
28 | ################# configuration ################# | 31 | ################# configuration ################# | ||
29 | configure_file(config-breeze.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-breeze.h ) | 32 | configure_file(config-breeze.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-breeze.h ) | ||
30 | 33 | | |||
31 | ################# newt target ################# | 34 | ################# newt target ################# | ||
32 | ### plugin classes | 35 | ### plugin classes | ||
33 | set(breezedecoration_SRCS | 36 | set(breezedecoration_SRCS | ||
34 | breezebutton.cpp | 37 | breezebutton.cpp | ||
35 | breezedecoration.cpp | 38 | breezedecoration.cpp | ||
39 | breezeboxshadowhelper.cpp | ||||
36 | breezeexceptionlist.cpp | 40 | breezeexceptionlist.cpp | ||
37 | breezesettingsprovider.cpp | 41 | breezesettingsprovider.cpp | ||
38 | breezesizegrip.cpp) | 42 | breezesizegrip.cpp) | ||
39 | 43 | | |||
40 | kconfig_add_kcfg_files(breezedecoration_SRCS breezesettings.kcfgc) | 44 | kconfig_add_kcfg_files(breezedecoration_SRCS breezesettings.kcfgc) | ||
41 | 45 | | |||
42 | ### config classes | 46 | ### config classes | ||
43 | ### they are kept separately because they might move in a separate library in the future | 47 | ### they are kept separately because they might move in a separate library in the future | ||
Show All 37 Lines | |||||
81 | 85 | | |||
82 | if(BREEZE_HAVE_X11) | 86 | if(BREEZE_HAVE_X11) | ||
83 | target_link_libraries(breezedecoration | 87 | target_link_libraries(breezedecoration | ||
84 | PUBLIC | 88 | PUBLIC | ||
85 | Qt5::X11Extras | 89 | Qt5::X11Extras | ||
86 | XCB::XCB) | 90 | XCB::XCB) | ||
87 | endif() | 91 | endif() | ||
88 | 92 | | |||
93 | target_link_libraries(breezedecoration PRIVATE ${FFTW_LIBRARIES}) | ||||
89 | 94 | | |||
90 | install(TARGETS breezedecoration DESTINATION ${PLUGIN_INSTALL_DIR}/org.kde.kdecoration2) | 95 | install(TARGETS breezedecoration DESTINATION ${PLUGIN_INSTALL_DIR}/org.kde.kdecoration2) | ||
91 | install(FILES config/breezedecorationconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | 96 | install(FILES config/breezedecorationconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}) |