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