2013-06-25 14:07:48 +00:00
|
|
|
#########################################################################
|
2014-04-30 07:03:23 +00:00
|
|
|
# KI18N Translation Domain for this library
|
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwincompositing\")
|
2013-06-25 14:07:48 +00:00
|
|
|
|
|
|
|
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
|
|
|
|
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
|
|
|
|
|
2013-12-02 07:56:10 +00:00
|
|
|
remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY)
|
2013-06-25 14:07:48 +00:00
|
|
|
|
2014-04-03 14:20:26 +00:00
|
|
|
include_directories(${KWIN_SOURCE_DIR}/effects)
|
|
|
|
|
2016-07-18 06:47:45 +00:00
|
|
|
include(ECMMarkAsTest)
|
|
|
|
|
2013-06-25 14:07:48 +00:00
|
|
|
################# configure checks and create the configured files #################
|
|
|
|
|
|
|
|
# now create config headers
|
|
|
|
configure_file(config-prefix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-prefix.h )
|
|
|
|
configure_file(config-compiler.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-compiler.h )
|
|
|
|
|
|
|
|
set(kwincomposing_SRC
|
|
|
|
model.cpp
|
2013-08-01 16:20:37 +00:00
|
|
|
main.cpp
|
2013-08-17 08:28:09 +00:00
|
|
|
compositing.cpp
|
2013-08-01 16:20:37 +00:00
|
|
|
effectconfig.cpp)
|
2013-06-25 14:07:48 +00:00
|
|
|
|
2014-03-07 13:41:05 +00:00
|
|
|
qt5_add_dbus_interface( kwincomposing_SRC
|
2014-04-02 10:02:36 +00:00
|
|
|
${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface)
|
2014-03-07 13:41:05 +00:00
|
|
|
qt5_add_dbus_interface( kwincomposing_SRC
|
2014-04-02 10:02:36 +00:00
|
|
|
${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
2013-08-09 12:29:05 +00:00
|
|
|
|
2014-05-23 08:11:02 +00:00
|
|
|
ki18n_wrap_ui(kwincomposing_SRC compositing.ui)
|
|
|
|
|
2013-12-02 08:55:21 +00:00
|
|
|
add_library(kwincompositing MODULE ${kwincomposing_SRC})
|
2013-06-25 14:07:48 +00:00
|
|
|
|
|
|
|
target_link_libraries(kwincompositing
|
2013-12-02 07:56:10 +00:00
|
|
|
Qt5::Quick
|
2013-08-20 17:12:09 +00:00
|
|
|
Qt5::DBus
|
2013-12-02 07:56:10 +00:00
|
|
|
Qt5::Widgets
|
2013-12-13 06:36:42 +00:00
|
|
|
KF5::CoreAddons
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::Declarative
|
|
|
|
KF5::I18n
|
|
|
|
KF5::Service
|
2013-09-25 13:45:04 +00:00
|
|
|
KF5::KCMUtils
|
2014-01-12 19:27:10 +00:00
|
|
|
KF5::NewStuff
|
2014-04-03 14:20:26 +00:00
|
|
|
kwin4_effect_builtins
|
2013-12-02 07:56:10 +00:00
|
|
|
)
|
2013-09-10 08:41:42 +00:00
|
|
|
|
2013-08-02 13:21:33 +00:00
|
|
|
|
2013-08-09 12:29:05 +00:00
|
|
|
set(modelTest_SRC
|
|
|
|
model.cpp
|
|
|
|
effectconfig.cpp
|
2013-08-17 08:28:09 +00:00
|
|
|
compositing.cpp
|
2013-08-09 12:29:05 +00:00
|
|
|
test/effectmodeltest.cpp
|
|
|
|
test/modeltest.cpp)
|
|
|
|
|
2014-03-07 13:41:05 +00:00
|
|
|
qt5_add_dbus_interface( modelTest_SRC
|
2014-04-02 10:02:36 +00:00
|
|
|
${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface)
|
2014-03-07 13:41:05 +00:00
|
|
|
qt5_add_dbus_interface( modelTest_SRC
|
2014-04-02 10:02:36 +00:00
|
|
|
${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
2014-03-07 13:41:05 +00:00
|
|
|
|
2013-08-09 12:29:05 +00:00
|
|
|
add_executable(effectModelTest ${modelTest_SRC})
|
2014-04-16 20:26:01 +00:00
|
|
|
ecm_mark_as_test(effectModelTest)
|
2013-08-09 12:29:05 +00:00
|
|
|
|
|
|
|
target_link_libraries(effectModelTest
|
2013-12-02 07:56:10 +00:00
|
|
|
Qt5::Quick
|
2013-08-20 17:12:09 +00:00
|
|
|
Qt5::DBus
|
2013-12-02 07:56:10 +00:00
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
2013-12-13 06:36:42 +00:00
|
|
|
KF5::CoreAddons
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::Declarative
|
|
|
|
KF5::I18n
|
|
|
|
KF5::Service
|
2013-09-25 13:45:04 +00:00
|
|
|
KF5::KCMUtils
|
2014-01-12 19:27:10 +00:00
|
|
|
KF5::NewStuff
|
2014-12-07 21:01:15 +00:00
|
|
|
kwineffects
|
2014-04-03 14:20:26 +00:00
|
|
|
kwin4_effect_builtins
|
|
|
|
)
|
2013-08-20 17:12:09 +00:00
|
|
|
|
2013-06-25 14:07:48 +00:00
|
|
|
INSTALL(DIRECTORY qml DESTINATION ${DATA_INSTALL_DIR}/kwincompositing)
|
2013-12-02 08:55:21 +00:00
|
|
|
INSTALL(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR})
|
2014-03-07 09:09:47 +00:00
|
|
|
install(FILES kwincompositing.desktop kcmkwineffects.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
2014-01-12 19:27:10 +00:00
|
|
|
install(FILES kwineffect.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
|
2013-06-25 14:07:48 +00:00
|
|
|
################# list the subdirectories #################
|