Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/CMakeLists.txt
- This file was copied to kcms/touchpadx/CMakeLists.txt.
1 | find_package(KDED ${KF5_MIN_VERSION} CONFIG REQUIRED) | 1 | # KI18N Translation Domain for this library | ||
---|---|---|---|---|---|
2 | | ||||
3 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_touchpad\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_touchpad\") | ||
4 | 3 | | |||
5 | set(CMAKE_MODULE_PATH | 4 | ########### next target ############### | ||
6 | ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules | 5 | set(kcm_touchpad_SRCS | ||
7 | ${CMAKE_MODULE_PATH} | 6 | kcm.cpp | ||
7 | ) | ||||
8 | | ||||
9 | add_library(kcm_touchpad MODULE ${kcm_touchpad_SRCS}) | ||||
10 | | ||||
11 | target_link_libraries(kcm_touchpad | ||||
12 | KF5::QuickAddons | ||||
13 | KF5::I18n | ||||
14 | KF5::ConfigWidgets | ||||
15 | KF5::Declarative | ||||
8 | ) | 16 | ) | ||
9 | set(CMAKE_INCLUDE_CURRENT_DIR true) | | |||
10 | set(TOUCHPAD_KCM_VERSION ${PROJECT_VERSION}) | | |||
11 | 17 | | |||
12 | add_subdirectory(src) | 18 | kcoreaddons_desktop_to_json(kcm_touchpad "kcm_touchpad.desktop" SERVICE_TYPES kcmodule.desktop) | ||
13 | add_subdirectory(icon) | 19 | | ||
20 | ########### install files ############### | ||||
21 | install( FILES kcm_touchpad.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||||
22 | install(TARGETS kcm_touchpad DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||||
23 | | ||||
24 | kpackage_install_package(package kcm_touchpad kcms) |