kwin/kcmkwin/kwincompositing/CMakeLists.txt

82 lines
2.3 KiB
Text
Raw Normal View History

2013-06-25 14:07:48 +00:00
#########################################################################
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwincompositing\")
2013-06-25 14:07:48 +00:00
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY)
2013-06-25 14:07:48 +00:00
include_directories(${KWIN_SOURCE_DIR}/effects)
2013-06-25 14:07:48 +00:00
################# configure checks and create the configured files #################
set(kwincomposing_SRC
model.cpp
main.cpp
2013-08-17 08:28:09 +00:00
compositing.cpp
effectconfig.cpp)
2013-06-25 14:07:48 +00:00
qt5_add_dbus_interface( kwincomposing_SRC
${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface)
qt5_add_dbus_interface( kwincomposing_SRC
${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
ki18n_wrap_ui(kwincomposing_SRC compositing.ui)
add_library(kwincompositing MODULE ${kwincomposing_SRC})
2013-06-25 14:07:48 +00:00
target_link_libraries(kwincompositing
Qt5::Quick
Qt5::QuickWidgets
2013-08-20 17:12:09 +00:00
Qt5::DBus
Qt5::Widgets
2013-12-13 06:36:42 +00:00
KF5::CoreAddons
KF5::ConfigCore
KF5::Declarative
KF5::I18n
2013-09-25 13:45:04 +00:00
KF5::KCMUtils
KF5::NewStuff
kcmkwincommon
)
2013-09-10 08:41:42 +00:00
if (BUILD_TESTING)
include(ECMMarkAsTest)
set(modelTest_SRC
model.cpp
effectconfig.cpp
compositing.cpp
test/effectmodeltest.cpp
test/modeltest.cpp)
qt5_add_dbus_interface(modelTest_SRC
${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface)
qt5_add_dbus_interface(modelTest_SRC
${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
add_executable(effectModelTest ${modelTest_SRC})
ecm_mark_as_test(effectModelTest)
target_link_libraries(effectModelTest
Qt5::Quick
Qt5::QuickWidgets
Qt5::DBus
Qt5::Test
Qt5::Widgets
KF5::CoreAddons
KF5::ConfigCore
KF5::Declarative
KF5::I18n
KF5::KCMUtils
KF5::NewStuff
kwineffects
kcmkwincommon
)
endif()
2013-08-20 17:12:09 +00:00
2013-06-25 14:07:48 +00:00
INSTALL(DIRECTORY qml DESTINATION ${DATA_INSTALL_DIR}/kwincompositing)
INSTALL(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kwincompositing.desktop kcmkwineffects.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES kwineffect.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
2013-06-25 14:07:48 +00:00
################# list the subdirectories #################