Changeset View
Changeset View
Standalone View
Standalone View
kstyle/CMakeLists.txt
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 12 | set(oxygen_PART_SRCS | |||
---|---|---|---|---|---|
61 | oxygenshadowhelper.cpp | 61 | oxygenshadowhelper.cpp | ||
62 | oxygensplitterproxy.cpp | 62 | oxygensplitterproxy.cpp | ||
63 | oxygenstyle.cpp | 63 | oxygenstyle.cpp | ||
64 | oxygenstylehelper.cpp | 64 | oxygenstylehelper.cpp | ||
65 | oxygenstyleplugin.cpp | 65 | oxygenstyleplugin.cpp | ||
66 | oxygenwindowmanager.cpp | 66 | oxygenwindowmanager.cpp | ||
67 | ) | 67 | ) | ||
68 | 68 | | |||
69 | if(OXYGEN_USE_KDE4) | | |||
70 | | ||||
71 | kde4_add_kcfg_files(oxygen_PART_SRCS oxygenstyleconfigdata.kcfgc) | | |||
72 | kde4_add_plugin(oxygen ${oxygen_PART_SRCS} kstylekde4compat.cpp) | | |||
73 | target_link_libraries(oxygen ${KDE4_KDEUI_LIBS}) | | |||
74 | target_link_libraries(oxygen oxygenstyle) | | |||
75 | | ||||
76 | if(OXYGEN_HAVE_X11) | | |||
77 | target_link_libraries(oxygen ${X11_XCB_LIBRARIES}) | | |||
78 | target_link_libraries(oxygen ${XCB_LIBRARIES}) | | |||
79 | endif() | | |||
80 | | ||||
81 | install(TARGETS oxygen DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles/) | | |||
82 | | ||||
83 | else() | | |||
84 | | ||||
85 | kconfig_add_kcfg_files(oxygen_PART_SRCS oxygenstyleconfigdata.kcfgc) | 69 | kconfig_add_kcfg_files(oxygen_PART_SRCS oxygenstyleconfigdata.kcfgc) | ||
86 | add_library(oxygen MODULE ${oxygen_PART_SRCS}) | 70 | add_library(oxygen MODULE ${oxygen_PART_SRCS}) | ||
87 | 71 | | |||
88 | target_link_libraries(oxygen Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus Qt5::Quick) | 72 | target_link_libraries(oxygen Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus Qt5::Quick) | ||
89 | target_link_libraries(oxygen KF5::GuiAddons KF5::Style KF5::WindowSystem) | 73 | target_link_libraries(oxygen KF5::GuiAddons KF5::Style KF5::WindowSystem) | ||
90 | target_link_libraries(oxygen oxygenstyle5) | 74 | target_link_libraries(oxygen oxygenstyle5) | ||
91 | 75 | | |||
92 | if(OXYGEN_HAVE_X11) | 76 | if(OXYGEN_HAVE_X11) | ||
93 | target_link_libraries(oxygen XCB::XCB) | 77 | target_link_libraries(oxygen XCB::XCB) | ||
94 | target_link_libraries(oxygen Qt5::X11Extras) | 78 | target_link_libraries(oxygen Qt5::X11Extras) | ||
95 | endif() | 79 | endif() | ||
96 | 80 | | |||
97 | if(OXYGEN_HAVE_KWAYLAND) | 81 | if(OXYGEN_HAVE_KWAYLAND) | ||
98 | target_link_libraries(oxygen KF5::WaylandClient) | 82 | target_link_libraries(oxygen KF5::WaylandClient) | ||
99 | endif() | 83 | endif() | ||
100 | 84 | | |||
101 | install(TARGETS oxygen DESTINATION ${QT_PLUGIN_INSTALL_DIR}/styles/) | 85 | install(TARGETS oxygen DESTINATION ${QT_PLUGIN_INSTALL_DIR}/styles/) | ||
102 | 86 | | |||
103 | endif() | | |||
104 | | ||||
105 | if(WIN32) | 87 | if(WIN32) | ||
106 | # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined | 88 | # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined | ||
107 | # when using MSVC if _USE_MATH_DEFINES is defined (this is needed for angle.cpp) | 89 | # when using MSVC if _USE_MATH_DEFINES is defined (this is needed for angle.cpp) | ||
108 | target_compile_definitions(oxygen PRIVATE _USE_MATH_DEFINES _GNU_SOURCE) | 90 | target_compile_definitions(oxygen PRIVATE _USE_MATH_DEFINES _GNU_SOURCE) | ||
109 | endif() | 91 | endif() | ||
110 | 92 | | |||
111 | ########### install files ############### | 93 | ########### install files ############### | ||
112 | install(FILES oxygen.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes) | 94 | install(FILES oxygen.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes) | ||
113 | 95 | | |||
114 | ########### subdirectories ############### | 96 | ########### subdirectories ############### | ||
115 | add_subdirectory(config) | 97 | add_subdirectory(config) | ||
116 | add_subdirectory(demo) | 98 | add_subdirectory(demo) |