-
-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathCMakeLists.txt
136 lines (116 loc) · 4.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
################# includes #################
include_directories(
animations
debug
)
include_directories(${CMAKE_SOURCE_DIR}/libbreezecommon)
include_directories(${CMAKE_BINARY_DIR}/libbreezecommon)
################# configuration #################
configure_file(config-breeze.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-breeze.h )
########### next target ###############
set(breeze_PART_SRCS
animations/breezeanimation.cpp
animations/breezeanimations.cpp
animations/breezeanimationdata.cpp
animations/breezebaseengine.cpp
animations/breezebusyindicatordata.cpp
animations/breezebusyindicatorengine.cpp
animations/breezedialdata.cpp
animations/breezedialengine.cpp
animations/breezeenabledata.cpp
animations/breezegenericdata.cpp
animations/breezeheaderviewdata.cpp
animations/breezeheaderviewengine.cpp
animations/breezescrollbardata.cpp
animations/breezescrollbarengine.cpp
animations/breezespinboxengine.cpp
animations/breezespinboxdata.cpp
animations/breezestackedwidgetdata.cpp
animations/breezestackedwidgetengine.cpp
animations/breezetabbarengine.cpp
animations/breezetabbardata.cpp
animations/breezetoolboxengine.cpp
animations/breezetransitiondata.cpp
animations/breezetransitionwidget.cpp
animations/breezewidgetstateengine.cpp
animations/breezewidgetstatedata.cpp
debug/breezewidgetexplorer.cpp
breezeaddeventfilter.cpp
breezeblurhelper.cpp
breezeframeshadow.cpp
breezehelper.cpp
breezemdiwindowshadow.cpp
breezemnemonics.cpp
breezepropertynames.cpp
breezeshadowhelper.cpp
breezesplitterproxy.cpp
breezestyle.cpp
breezestyleplugin.cpp
breezetileset.cpp
breezewindowmanager.cpp
breezetoolsareamanager.cpp
)
kconfig_add_kcfg_files(breeze_PART_SRCS ../kdecoration/breezesettings.kcfgc)
kconfig_add_kcfg_files(breeze_PART_SRCS breezestyleconfigdata.kcfgc)
add_library(breeze${QT_MAJOR_VERSION} MODULE ${breeze_PART_SRCS})
ecm_qt_declare_logging_category(breeze${QT_MAJOR_VERSION}
HEADER
breeze_logging.h
IDENTIFIER
BREEZE
CATEGORY_NAME
breeze${QT_MAJOR_VERSION}
DEFAULT_SEVERITY
Warning
)
target_link_libraries(breeze${QT_MAJOR_VERSION}
Qt${QT_MAJOR_VERSION}::Core
Qt${QT_MAJOR_VERSION}::Gui
Qt${QT_MAJOR_VERSION}::Widgets
)
if(HAVE_QTDBUS)
target_link_libraries(breeze${QT_MAJOR_VERSION}
Qt${QT_MAJOR_VERSION}::DBus
)
endif()
if( BREEZE_HAVE_QTQUICK )
target_link_libraries(breeze${QT_MAJOR_VERSION}
Qt${QT_MAJOR_VERSION}::Quick
KF${QT_MAJOR_VERSION}::CoreAddons
)
endif()
target_link_libraries(breeze${QT_MAJOR_VERSION}
KF${QT_MAJOR_VERSION}::CoreAddons
KF${QT_MAJOR_VERSION}::ConfigCore
KF${QT_MAJOR_VERSION}::ConfigGui
KF${QT_MAJOR_VERSION}::GuiAddons
KF${QT_MAJOR_VERSION}::IconThemes
KF${QT_MAJOR_VERSION}::WindowSystem
)
if(QT_MAJOR_VERSION STREQUAL "5")
target_link_libraries(breeze5 KF5::ConfigWidgets)
if (BREEZE_HAVE_QTQUICK)
target_link_libraries(breeze5 KF5::Kirigami2)
endif()
else()
target_link_libraries(breeze6 KF6::ColorScheme)
if (BREEZE_HAVE_QTQUICK)
target_link_libraries(breeze6 KF6::KirigamiPlatform)
endif()
endif()
target_link_libraries(breeze${QT_MAJOR_VERSION} breezecommon${QT_MAJOR_VERSION})
if(KF${QT_MAJOR_VERSION}FrameworkIntegration_FOUND)
target_link_libraries(breeze${QT_MAJOR_VERSION} KF${QT_MAJOR_VERSION}::Style)
endif()
if (WIN32)
# As stated in https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants M_PI only gets defined
# when if _USE_MATH_DEFINES is defined
target_compile_definitions(breeze${QT_MAJOR_VERSION} PRIVATE _USE_MATH_DEFINES _BSD_SOURCE)
endif()
########### install files ###############
install(TARGETS breeze${QT_MAJOR_VERSION} DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/styles/)
install(FILES breeze.themerc DESTINATION ${KDE_INSTALL_DATADIR}/kstyle/themes)
########### subdirectories ###############
if (QT_MAJOR_VERSION EQUAL "6" AND TARGET "KF6::KCMUtils")
add_subdirectory(config)
endif()