Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwincompositing/CMakeLists.txt
1 | ######################################################################### | 1 | ######################################################################### | ||
---|---|---|---|---|---|
2 | # KI18N Translation Domain for this library | 2 | # KI18N Translation Domain for this library | ||
3 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwincompositing\") | 3 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwincompositing\") | ||
4 | 4 | | |||
5 | add_definitions(-DQT_NO_URL_CAST_FROM_STRING) | 5 | add_definitions(-DQT_NO_URL_CAST_FROM_STRING) | ||
6 | 6 | | |||
7 | remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY) | 7 | remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY) | ||
8 | 8 | | |||
9 | include_directories(${KWIN_SOURCE_DIR}/effects) | | |||
10 | | ||||
11 | ################# configure checks and create the configured files ################# | 9 | ################# configure checks and create the configured files ################# | ||
12 | 10 | | |||
13 | # now create config headers | 11 | # now create config headers | ||
14 | configure_file(config-prefix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-prefix.h ) | 12 | configure_file(config-prefix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-prefix.h ) | ||
15 | configure_file(config-compiler.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-compiler.h ) | 13 | configure_file(config-compiler.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-compiler.h ) | ||
16 | 14 | | |||
17 | set(kwincomposing_SRC | 15 | set(kwincomposing_SRC | ||
18 | model.cpp | | |||
19 | main.cpp | 16 | main.cpp | ||
20 | compositing.cpp | 17 | compositing.cpp) | ||
21 | effectconfig.cpp) | | |||
22 | 18 | | |||
23 | qt5_add_dbus_interface( kwincomposing_SRC | 19 | qt5_add_dbus_interface( kwincomposing_SRC | ||
24 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface) | 20 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface) | ||
25 | qt5_add_dbus_interface( kwincomposing_SRC | | |||
26 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface) | | |||
27 | 21 | | |||
28 | ki18n_wrap_ui(kwincomposing_SRC compositing.ui) | 22 | ki18n_wrap_ui(kwincomposing_SRC compositing.ui) | ||
29 | 23 | | |||
30 | add_library(kwincompositing MODULE ${kwincomposing_SRC}) | 24 | add_library(kwincompositing MODULE ${kwincomposing_SRC}) | ||
31 | 25 | | |||
32 | target_link_libraries(kwincompositing | 26 | target_link_libraries(kwincompositing | ||
33 | Qt5::Quick | | |||
34 | Qt5::QuickWidgets | | |||
35 | Qt5::DBus | | |||
36 | Qt5::Widgets | | |||
37 | KF5::CoreAddons | | |||
38 | KF5::ConfigCore | | |||
39 | KF5::Declarative | | |||
40 | KF5::I18n | | |||
41 | KF5::KCMUtils | | |||
42 | KF5::NewStuff | | |||
43 | kcmkwincommon | | |||
44 | ) | | |||
45 | | ||||
46 | if (BUILD_TESTING) | | |||
47 | include(ECMMarkAsTest) | | |||
48 | | ||||
49 | set(modelTest_SRC | | |||
50 | model.cpp | | |||
51 | effectconfig.cpp | | |||
52 | compositing.cpp | | |||
53 | test/effectmodeltest.cpp | | |||
54 | test/modeltest.cpp) | | |||
55 | | ||||
56 | qt5_add_dbus_interface(modelTest_SRC | | |||
57 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface) | | |||
58 | qt5_add_dbus_interface(modelTest_SRC | | |||
59 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface) | | |||
60 | | ||||
61 | add_executable(effectModelTest ${modelTest_SRC}) | | |||
62 | ecm_mark_as_test(effectModelTest) | | |||
63 | | ||||
64 | target_link_libraries(effectModelTest | | |||
65 | Qt5::Quick | | |||
66 | Qt5::QuickWidgets | | |||
67 | Qt5::DBus | 27 | Qt5::DBus | ||
68 | Qt5::Test | | |||
69 | Qt5::Widgets | 28 | Qt5::Widgets | ||
70 | KF5::CoreAddons | 29 | KF5::CoreAddons | ||
71 | KF5::ConfigCore | 30 | KF5::ConfigCore | ||
72 | KF5::Declarative | | |||
73 | KF5::I18n | 31 | KF5::I18n | ||
74 | KF5::KCMUtils | 32 | KF5::KCMUtils | ||
75 | KF5::NewStuff | | |||
76 | kwineffects | | |||
77 | kcmkwincommon | | |||
78 | ) | 33 | ) | ||
79 | endif() | | |||
80 | 34 | | |||
81 | INSTALL(DIRECTORY qml DESTINATION ${DATA_INSTALL_DIR}/kwincompositing) | | |||
82 | INSTALL(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR}) | 35 | INSTALL(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR}) | ||
83 | install(FILES kwincompositing.desktop kcmkwineffects.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | 36 | install(FILES kwincompositing.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | ||
84 | install(FILES kwineffect.knsrc DESTINATION ${CONFIG_INSTALL_DIR}) | | |||
85 | ################# list the subdirectories ################# | 37 | ################# list the subdirectories ################# |