Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/CMakeLists.txt
1 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/Version.h) | 1 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/Version.h) | ||
---|---|---|---|---|---|
2 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 2 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
3 | 3 | | |||
4 | set(kcm_SRCS | 4 | set(kcm_SRCS | ||
5 | main.cpp | 5 | main.cpp | ||
6 | Module.cpp | 6 | Module.cpp | ||
7 | OSRelease.cpp | | |||
8 | ) | 7 | ) | ||
9 | 8 | | |||
10 | ki18n_wrap_ui(kcm_SRCS Module.ui) | 9 | ki18n_wrap_ui(kcm_SRCS Module.ui) | ||
11 | 10 | | |||
12 | add_library(kcm_about_distro MODULE ${kcm_SRCS}) | 11 | add_library(kcm_about_distro MODULE ${kcm_SRCS}) | ||
13 | 12 | | |||
14 | target_link_libraries(kcm_about_distro | 13 | target_link_libraries(kcm_about_distro | ||
15 | KF5::ConfigWidgets | 14 | KF5::ConfigWidgets | ||
16 | KF5::CoreAddons | 15 | KF5::CoreAddons | ||
17 | KF5::I18n | 16 | KF5::I18n | ||
18 | KF5::Solid) | 17 | KF5::Solid) | ||
19 | 18 | | |||
20 | install(TARGETS kcm_about_distro DESTINATION ${PLUGIN_INSTALL_DIR}) | 19 | install(TARGETS kcm_about_distro DESTINATION ${PLUGIN_INSTALL_DIR}) | ||
21 | install(FILES about-distro.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | 20 | install(FILES about-distro.desktop DESTINATION ${SERVICES_INSTALL_DIR}) |