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