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_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) | 5 | add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) | ||
6 | add_definitions(-DQT_NO_URL_CAST_FROM_STRING) | 6 | add_definitions(-DQT_NO_URL_CAST_FROM_STRING) | ||
7 | 7 | | |||
8 | remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY) | 8 | remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY) | ||
9 | 9 | | |||
10 | include_directories(${KWIN_SOURCE_DIR}/effects) | 10 | include_directories(${KWIN_SOURCE_DIR}/effects) | ||
11 | 11 | | |||
12 | include(ECMMarkAsTest) | | |||
13 | | ||||
14 | ################# configure checks and create the configured files ################# | 12 | ################# configure checks and create the configured files ################# | ||
15 | 13 | | |||
16 | # now create config headers | 14 | # now create config headers | ||
17 | configure_file(config-prefix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-prefix.h ) | 15 | configure_file(config-prefix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-prefix.h ) | ||
18 | configure_file(config-compiler.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-compiler.h ) | 16 | configure_file(config-compiler.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-compiler.h ) | ||
19 | 17 | | |||
20 | set(kwincomposing_SRC | 18 | set(kwincomposing_SRC | ||
21 | model.cpp | 19 | model.cpp | ||
Show All 20 Lines | 33 | target_link_libraries(kwincompositing | |||
42 | KF5::Declarative | 40 | KF5::Declarative | ||
43 | KF5::I18n | 41 | KF5::I18n | ||
44 | KF5::Service | 42 | KF5::Service | ||
45 | KF5::KCMUtils | 43 | KF5::KCMUtils | ||
46 | KF5::NewStuff | 44 | KF5::NewStuff | ||
47 | kwin4_effect_builtins | 45 | kwin4_effect_builtins | ||
48 | ) | 46 | ) | ||
49 | 47 | | |||
48 | if (BUILD_TESTING) | ||||
49 | include(ECMMarkAsTest) | ||||
50 | 50 | | |||
51 | set(modelTest_SRC | 51 | set(modelTest_SRC | ||
52 | model.cpp | 52 | model.cpp | ||
53 | effectconfig.cpp | 53 | effectconfig.cpp | ||
54 | compositing.cpp | 54 | compositing.cpp | ||
55 | test/effectmodeltest.cpp | 55 | test/effectmodeltest.cpp | ||
56 | test/modeltest.cpp) | 56 | test/modeltest.cpp) | ||
57 | 57 | | |||
58 | qt5_add_dbus_interface( modelTest_SRC | 58 | qt5_add_dbus_interface(modelTest_SRC | ||
59 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface) | 59 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface) | ||
60 | qt5_add_dbus_interface( modelTest_SRC | 60 | qt5_add_dbus_interface(modelTest_SRC | ||
61 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface) | 61 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface) | ||
62 | 62 | | |||
63 | add_executable(effectModelTest ${modelTest_SRC}) | 63 | add_executable(effectModelTest ${modelTest_SRC}) | ||
64 | ecm_mark_as_test(effectModelTest) | 64 | ecm_mark_as_test(effectModelTest) | ||
65 | 65 | | |||
66 | target_link_libraries(effectModelTest | 66 | target_link_libraries(effectModelTest | ||
67 | Qt5::Quick | 67 | Qt5::Quick | ||
68 | Qt5::QuickWidgets | 68 | Qt5::QuickWidgets | ||
69 | Qt5::DBus | 69 | Qt5::DBus | ||
70 | Qt5::Test | 70 | Qt5::Test | ||
71 | Qt5::Widgets | 71 | Qt5::Widgets | ||
72 | KF5::CoreAddons | 72 | KF5::CoreAddons | ||
73 | KF5::ConfigCore | 73 | KF5::ConfigCore | ||
74 | KF5::Declarative | 74 | KF5::Declarative | ||
75 | KF5::I18n | 75 | KF5::I18n | ||
76 | KF5::Service | 76 | KF5::Service | ||
77 | KF5::KCMUtils | 77 | KF5::KCMUtils | ||
78 | KF5::NewStuff | 78 | KF5::NewStuff | ||
79 | kwineffects | 79 | kwineffects | ||
80 | kwin4_effect_builtins | 80 | kwin4_effect_builtins | ||
81 | ) | 81 | ) | ||
82 | endif() | ||||
82 | 83 | | |||
83 | INSTALL(DIRECTORY qml DESTINATION ${DATA_INSTALL_DIR}/kwincompositing) | 84 | INSTALL(DIRECTORY qml DESTINATION ${DATA_INSTALL_DIR}/kwincompositing) | ||
84 | INSTALL(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR}) | 85 | INSTALL(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR}) | ||
85 | install(FILES kwincompositing.desktop kcmkwineffects.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | 86 | install(FILES kwincompositing.desktop kcmkwineffects.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | ||
86 | install(FILES kwineffect.knsrc DESTINATION ${CONFIG_INSTALL_DIR}) | 87 | install(FILES kwineffect.knsrc DESTINATION ${CONFIG_INSTALL_DIR}) | ||
87 | ################# list the subdirectories ################# | 88 | ################# list the subdirectories ################# |