Changeset View
Changeset View
Standalone View
Standalone View
src/zanshin/kontact/CMakeLists.txt
1 | # TODO: remove once kontactinterface 5.14.42 is required | ||||
---|---|---|---|---|---|
2 | | ||||
3 | if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") | ||||
4 | # CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros. | ||||
5 | # 3.10+ lets us provide more macro names that require automoc. | ||||
6 | # KF5 >= 5.42 takes care itself of adding its macros in its cmake config files | ||||
7 | list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "EXPORT_KONTACT_PLUGIN_WITH_JSON") | ||||
8 | endif() | ||||
9 | | ||||
1 | set(part_SRCS | 10 | set(part_SRCS | ||
2 | ../app/aboutdata.cpp | 11 | ../app/aboutdata.cpp | ||
3 | part.cpp | 12 | part.cpp | ||
4 | ) | 13 | ) | ||
5 | 14 | | |||
6 | add_library(zanshin_part MODULE ${part_SRCS}) | 15 | add_library(zanshin_part MODULE ${part_SRCS}) | ||
7 | kde_enable_exceptions() | 16 | kde_enable_exceptions() | ||
8 | target_link_libraries(zanshin_part | 17 | target_link_libraries(zanshin_part | ||
9 | KF5::Parts | 18 | KF5::Parts | ||
10 | integration | 19 | integration | ||
11 | widgets | 20 | widgets | ||
12 | ) | 21 | ) | ||
13 | 22 | | |||
14 | install(TARGETS zanshin_part DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 23 | install(TARGETS zanshin_part DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||
15 | install(FILES zanshin_part.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 24 | install(FILES zanshin_part.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
16 | 25 | | |||
17 | ########################## | 26 | ########################## | ||
18 | 27 | | |||
19 | set(kontact_SRCS | 28 | set(kontact_SRCS | ||
20 | kontact_plugin.cpp | 29 | kontact_plugin.cpp | ||
21 | ) | 30 | ) | ||
22 | 31 | | |||
23 | add_library(kontact_zanshinplugin MODULE ${kontact_SRCS}) | 32 | add_library(kontact_zanshinplugin MODULE ${kontact_SRCS}) | ||
24 | target_link_libraries(kontact_zanshinplugin KF5::Parts KF5::KontactInterface) | 33 | target_link_libraries(kontact_zanshinplugin KF5::Parts KF5::KontactInterface) | ||
34 | kcoreaddons_desktop_to_json(kontact_zanshinplugin zanshin_plugin.desktop) | ||||
25 | 35 | | |||
26 | install(TARGETS kontact_zanshinplugin DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 36 | install(TARGETS kontact_zanshinplugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/kontact5) | ||
27 | install(FILES zanshin_plugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/kontact) | 37 | install(FILES zanshin_plugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/kontact) | ||
28 | install(FILES zanshin_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/zanshin) | 38 | install(FILES zanshin_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/zanshin) | ||
29 | 39 | |