Changeset View
Changeset View
Standalone View
Standalone View
kstyle/CMakeLists.txt
1 | ################# Qt/KDE ################# | 1 | ################# Qt/KDE ################# | ||
---|---|---|---|---|---|
2 | find_package(Qt5 REQUIRED CONFIG COMPONENTS Widgets DBus) | 2 | find_package(Qt5 REQUIRED CONFIG COMPONENTS Widgets DBus) | ||
3 | find_package(KF5 REQUIRED COMPONENTS | 3 | find_package(KF5 REQUIRED COMPONENTS | ||
4 | I18n | 4 | I18n | ||
5 | Config | 5 | Config | ||
6 | GuiAddons | 6 | GuiAddons | ||
7 | IconThemes | 7 | IconThemes | ||
8 | ConfigWidgets | 8 | ConfigWidgets | ||
9 | WindowSystem) | 9 | WindowSystem | ||
10 | IconThemes) | ||||
10 | 11 | | |||
11 | find_package(Qt5 COMPONENTS Quick) | 12 | find_package(Qt5 COMPONENTS Quick) | ||
12 | set(BREEZE_HAVE_QTQUICK ${Qt5Quick_FOUND}) | 13 | set(BREEZE_HAVE_QTQUICK ${Qt5Quick_FOUND}) | ||
13 | 14 | | |||
14 | find_package( KF5FrameworkIntegration CONFIG ) | 15 | find_package( KF5FrameworkIntegration CONFIG ) | ||
15 | set_package_properties(KF5FrameworkIntegration PROPERTIES | 16 | set_package_properties(KF5FrameworkIntegration PROPERTIES | ||
16 | DESCRIPTION "KF5 Framework Integration" | 17 | DESCRIPTION "KF5 Framework Integration" | ||
17 | URL "https://projects.kde.org/projects/frameworks/frameworkintegration" | 18 | URL "https://projects.kde.org/projects/frameworks/frameworkintegration" | ||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 58 | set(breeze_PART_SRCS | |||
89 | breezemnemonics.cpp | 90 | breezemnemonics.cpp | ||
90 | breezepropertynames.cpp | 91 | breezepropertynames.cpp | ||
91 | breezeshadowhelper.cpp | 92 | breezeshadowhelper.cpp | ||
92 | breezesplitterproxy.cpp | 93 | breezesplitterproxy.cpp | ||
93 | breezestyle.cpp | 94 | breezestyle.cpp | ||
94 | breezestyleplugin.cpp | 95 | breezestyleplugin.cpp | ||
95 | breezetileset.cpp | 96 | breezetileset.cpp | ||
96 | breezewindowmanager.cpp | 97 | breezewindowmanager.cpp | ||
98 | breezetoolsareamanager.cpp | ||||
97 | ) | 99 | ) | ||
98 | 100 | | |||
101 | kconfig_add_kcfg_files(breeze_PART_SRCS ../kdecoration/breezesettings.kcfgc) | ||||
99 | kconfig_add_kcfg_files(breeze_PART_SRCS breezestyleconfigdata.kcfgc) | 102 | kconfig_add_kcfg_files(breeze_PART_SRCS breezestyleconfigdata.kcfgc) | ||
100 | add_library(breeze MODULE ${breeze_PART_SRCS}) | 103 | add_library(breeze MODULE ${breeze_PART_SRCS}) | ||
101 | target_link_libraries(breeze Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus) | 104 | target_link_libraries(breeze Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus) | ||
102 | if( BREEZE_HAVE_QTQUICK ) | 105 | if( BREEZE_HAVE_QTQUICK ) | ||
103 | target_link_libraries(breeze Qt5::Quick) | 106 | target_link_libraries(breeze Qt5::Quick) | ||
104 | endif() | 107 | endif() | ||
105 | target_link_libraries(breeze KF5::ConfigCore KF5::ConfigWidgets KF5::GuiAddons KF5::IconThemes KF5::WindowSystem) | 108 | target_link_libraries(breeze KF5::ConfigCore KF5::ConfigWidgets KF5::GuiAddons KF5::WindowSystem KF5::IconThemes) | ||
106 | target_link_libraries(breeze breezecommon5) | 109 | target_link_libraries(breeze breezecommon5) | ||
107 | 110 | | |||
108 | if(KF5FrameworkIntegration_FOUND) | 111 | if(KF5FrameworkIntegration_FOUND) | ||
109 | target_link_libraries(breeze KF5::Style) | 112 | target_link_libraries(breeze KF5::Style) | ||
110 | endif() | 113 | endif() | ||
111 | 114 | | |||
112 | if (WIN32) | 115 | if (WIN32) | ||
113 | # As stated in https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants M_PI only gets defined | 116 | # As stated in https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants M_PI only gets defined | ||
Show All 20 Lines |