kwin/kcmkwin/kwindecoration/CMakeLists.txt
Martin Gräßlin 1c2f27945c Adjust kcmkwins to new ki18n
Define the TRANSLATION_DOMAIN in each of the kcms and use
ki18n_wrap_ui.
2014-05-05 08:03:55 +02:00

50 lines
1.2 KiB
CMake

# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwindecoration\")
# need a header file from Aurorae sources
include_directories(
${KWIN_SOURCE_DIR}/clients/aurorae/src/lib
)
set(AURORAE_SOURCE_DIR ${KWIN_SOURCE_DIR}/clients/aurorae/src/lib/)
set(kcm_kwindecoration_PART_SRCS
kwindecoration.cpp
buttons.cpp
buttonsconfigdialog.cpp
configdialog.cpp
preview.cpp
decorationmodel.cpp
${AURORAE_SOURCE_DIR}/auroraetheme.cpp
${AURORAE_SOURCE_DIR}/themeconfig.cpp
)
ki18n_wrap_ui(kcm_kwindecoration_PART_SRCS
auroraeconfig.ui
buttons.ui
config.ui
decoration.ui
)
add_library(kcm_kwindecoration MODULE ${kcm_kwindecoration_PART_SRCS})
target_link_libraries(kcm_kwindecoration
kdecorations
Qt5::DBus
Qt5::Quick
Qt5::UiTools
KF5::Completion
KF5::ConfigWidgets
KF5::I18n
KF5::NewStuff
)
install(TARGETS kcm_kwindecoration DESTINATION ${PLUGIN_INSTALL_DIR} )
########### install files ###############
install( FILES kwindecoration.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES
qml/main.qml
qml/AuroraeDecoration.qml
qml/AuroraePreview.qml
qml/DecorationPreview.qml
DESTINATION ${DATA_INSTALL_DIR}/kwin/kcm_kwindecoration)