Changeset View
Changeset View
Standalone View
Standalone View
kcm/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kcm") | 1 | add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kcm") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include_directories(${CMAKE_CURRENT_BINARY_DIR} | 3 | include_directories(${CMAKE_CURRENT_BINARY_DIR} | ||
4 | ${CMAKE_CURRENT_SOURCE_DIR} | 4 | ${CMAKE_CURRENT_SOURCE_DIR} | ||
5 | ${CMAKE_SOURCE_DIR} | 5 | ${CMAKE_SOURCE_DIR} | ||
6 | ${CMAKE_BINARY_DIR}) | 6 | ${CMAKE_BINARY_DIR}) | ||
7 | 7 | | |||
8 | set(kcm_SRCS | 8 | set(kcm_SRCS | ||
9 | kcm.cpp | 9 | kcm.cpp | ||
10 | ) | 10 | ) | ||
11 | 11 | | |||
12 | set(kcm_wrapper_SRCS main.cpp) | ||||
13 | add_executable(kdeconnect-settings ${kcm_wrapper_SRCS}) | ||||
14 | target_link_libraries(kdeconnect-settings KF5::I18n KF5::KCMUtils) | ||||
15 | | ||||
12 | ki18n_wrap_ui(kcm_SRCS kcm.ui) | 16 | ki18n_wrap_ui(kcm_SRCS kcm.ui) | ||
13 | 17 | | |||
14 | add_library(kcm_kdeconnect MODULE ${kcm_SRCS}) | 18 | add_library(kcm_kdeconnect MODULE ${kcm_SRCS}) | ||
15 | 19 | | |||
16 | target_link_libraries(kcm_kdeconnect | 20 | target_link_libraries(kcm_kdeconnect | ||
17 | Qt5::Core | 21 | Qt5::Core | ||
18 | Qt5::Gui | 22 | Qt5::Gui | ||
19 | KF5::I18n | 23 | KF5::I18n | ||
20 | KF5::KCMUtils | 24 | KF5::KCMUtils | ||
21 | kdeconnectinterfaces | 25 | kdeconnectinterfaces | ||
22 | ) | 26 | ) | ||
23 | 27 | | |||
24 | install(TARGETS kcm_kdeconnect DESTINATION ${PLUGIN_INSTALL_DIR}) | 28 | install(TARGETS kcm_kdeconnect DESTINATION ${PLUGIN_INSTALL_DIR}) | ||
29 | install(TARGETS kdeconnect-settings ${INSTALL_TARGETS_DEFAULT_ARGS}) | ||||
25 | 30 | | |||
26 | install(FILES org.kde.kdeconnect.kcm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) | 31 | install(FILES org.kde.kdeconnect.kcm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) | ||
27 | install(FILES kcm_kdeconnect.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | 32 | install(FILES kcm_kdeconnect.desktop DESTINATION ${SERVICES_INSTALL_DIR}) |