e95d1dc950
Summary: Use KConfig XT to manage most fields of the KCM. Simplify code. Depends on D27955 Test Plan: No functional change Reviewers: #kwin, ervin, crossi, bport, hchain, zzag Reviewed By: #kwin, ervin, bport, zzag Subscribers: anthonyfieroni, zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D27988
36 lines
1 KiB
CMake
36 lines
1 KiB
CMake
#########################################################################
|
|
# KI18N Translation Domain for this library
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwincompositing\")
|
|
|
|
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
|
|
|
|
remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY)
|
|
|
|
################# configure checks and create the configured files #################
|
|
|
|
set(kwincompositing_SRC
|
|
main.cpp
|
|
)
|
|
|
|
kconfig_add_kcfg_files(kwincompositing_SRC kwincompositing_setting.kcfgc GENERATE_MOC)
|
|
|
|
qt5_add_dbus_interface(kwincompositing_SRC
|
|
${KWin_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface
|
|
)
|
|
|
|
ki18n_wrap_ui(kwincompositing_SRC compositing.ui)
|
|
|
|
add_library(kwincompositing MODULE ${kwincompositing_SRC})
|
|
|
|
target_link_libraries(kwincompositing
|
|
Qt5::DBus
|
|
Qt5::Widgets
|
|
|
|
KF5::ConfigCore
|
|
KF5::CoreAddons
|
|
KF5::I18n
|
|
KF5::KCMUtils
|
|
)
|
|
|
|
install(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
install(FILES kwincompositing.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|