Changeset View
Changeset View
Standalone View
Standalone View
kcm/CMakeLists.txt
1 | add_subdirectory(src) | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_displayconfiguration\") | ||
---|---|---|---|---|---|
2 | add_subdirectory(qml) | | |||
3 | 2 | | |||
4 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/kcm_kscreen.desktop.cmake | 3 | set(kcm_kscreen_SRCS | ||
5 | ${CMAKE_CURRENT_BINARY_DIR}/kcm_kscreen.desktop | 4 | config_handler.cpp | ||
6 | @ONLY) | 5 | kcm.cpp | ||
6 | output_identifier.cpp | ||||
7 | output_model.cpp | ||||
8 | ${CMAKE_SOURCE_DIR}/common/utils.cpp | ||||
9 | ${CMAKE_SOURCE_DIR}/common/control.cpp | ||||
10 | ${CMAKE_SOURCE_DIR}/common/globals.cpp | ||||
11 | ) | ||||
7 | 12 | | |||
8 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kcm_kscreen.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) | 13 | ecm_qt_declare_logging_category(kcm_kscreen_SRCS | ||
14 | HEADER | ||||
15 | kcm_screen_debug.h | ||||
16 | IDENTIFIER | ||||
17 | KSCREEN_KCM | ||||
18 | CATEGORY_NAME | ||||
19 | kscreen.kcm | ||||
20 | ) | ||||
21 | | ||||
22 | add_library(kcm_kscreen MODULE ${kcm_kscreen_SRCS}) | ||||
23 | | ||||
24 | target_link_libraries(kcm_kscreen | ||||
25 | KF5::ConfigCore | ||||
26 | KF5::CoreAddons | ||||
27 | KF5::I18n | ||||
28 | KF5::QuickAddons | ||||
29 | KF5::Screen | ||||
30 | ) | ||||
31 | | ||||
32 | kcoreaddons_desktop_to_json(kcm_kscreen "kcm_kscreen.desktop" SERVICE_TYPES kcmodule.desktop) | ||||
33 | | ||||
34 | #this desktop file is installed only for retrocompatibility with sycoca | ||||
35 | install(FILES kcm_kscreen.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||||
36 | | ||||
37 | install(TARGETS kcm_kscreen DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||||
38 | | ||||
39 | kpackage_install_package(package kcm_kscreen kcms) |