Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/icalendar/export/CMakeLists.txt
1 | # patch the version with the version defined in the build system | 1 | # patch the version with the version defined in the build system | ||
---|---|---|---|---|---|
2 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/icalendarexporter.json.in | 2 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/icalendarexporter.json.in | ||
3 | ${CMAKE_CURRENT_BINARY_DIR}/icalendarexporter.json | 3 | ${CMAKE_CURRENT_BINARY_DIR}/icalendarexporter.json | ||
4 | @ONLY | 4 | @ONLY | ||
5 | ) | 5 | ) | ||
6 | 6 | | |||
7 | set(icalendarexporter_PART_SRCS | 7 | set(icalendarexporter_PART_SRCS | ||
8 | schedulestoicalendar.cpp | 8 | schedulestoicalendar.cpp | ||
9 | icalendarexporter.cpp | 9 | icalendarexporter.cpp | ||
10 | ) | 10 | ) | ||
11 | 11 | | |||
12 | kconfig_add_kcfg_files(icalendarexporter_PART_SRCS pluginsettings.kcfgc) | 12 | kconfig_add_kcfg_files(icalendarexporter_PART_SRCS pluginsettings.kcfgc) | ||
13 | add_library(icalendarexporter MODULE ${icalendarexporter_PART_SRCS}) | 13 | | ||
14 | kcoreaddons_add_plugin(icalendarexporter | ||||
15 | SOURCES ${icalendarexporter_PART_SRCS} | ||||
16 | JSON "${CMAKE_CURRENT_BINARY_DIR}/icalendarexporter.json" | ||||
17 | INSTALL_NAMESPACE "kmymoney") | ||||
18 | | ||||
19 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
20 | set_target_properties(icalendarexporter | ||||
21 | PROPERTIES | ||||
22 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
14 | 23 | | |||
15 | target_include_directories(icalendarexporter PRIVATE ${LIBICAL_INCLUDE_DIRS}) | 24 | target_include_directories(icalendarexporter PRIVATE ${LIBICAL_INCLUDE_DIRS}) | ||
16 | target_link_libraries(icalendarexporter | 25 | target_link_libraries(icalendarexporter | ||
17 | KF5::KIOWidgets | 26 | KF5::KIOWidgets | ||
18 | kmm_mymoney | 27 | kmm_mymoney | ||
19 | kmm_plugin | 28 | kmm_plugin | ||
20 | ${LIBICAL_LIBRARIES} | 29 | ${LIBICAL_LIBRARIES} | ||
21 | ) | 30 | ) | ||
22 | 31 | | |||
23 | install(FILES icalendarexporter.rc | 32 | install(FILES icalendarexporter.rc | ||
24 | DESTINATION "${KXMLGUI_INSTALL_DIR}/icalendarexporter") | 33 | DESTINATION "${KXMLGUI_INSTALL_DIR}/icalendarexporter") | ||
25 | 34 | | |||
26 | install(TARGETS icalendarexporter | | |||
27 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney/") | | |||
28 | | ||||
29 | # the KCM module | 35 | # the KCM module | ||
30 | 36 | | |||
31 | set(kcm_icalendarexporter_PART_SRCS | 37 | set(kcm_icalendarexporter_PART_SRCS | ||
32 | kcm_icalendarexporter.cpp | 38 | kcm_icalendarexporter.cpp | ||
33 | ) | 39 | ) | ||
34 | 40 | | |||
35 | kconfig_add_kcfg_files(kcm_icalendarexporter_PART_SRCS pluginsettings.kcfgc) | 41 | kconfig_add_kcfg_files(kcm_icalendarexporter_PART_SRCS pluginsettings.kcfgc) | ||
36 | ki18n_wrap_ui(kcm_icalendarexporter_PART_SRCS pluginsettingsdecl.ui) | 42 | ki18n_wrap_ui(kcm_icalendarexporter_PART_SRCS pluginsettingsdecl.ui) | ||
37 | 43 | | |||
38 | add_library(kcm_icalendarexporter MODULE ${kcm_icalendarexporter_PART_SRCS}) | 44 | kcoreaddons_add_plugin(kcm_icalendarexporter | ||
45 | SOURCES ${kcm_icalendarexporter_PART_SRCS} | ||||
46 | JSON "${CMAKE_CURRENT_BINARY_DIR}/kcm_icalendarexporter.json" | ||||
47 | INSTALL_NAMESPACE "kmymoney") | ||||
48 | | ||||
39 | kcoreaddons_desktop_to_json(kcm_icalendarexporter kcm_icalendarexporter.desktop) | 49 | kcoreaddons_desktop_to_json(kcm_icalendarexporter kcm_icalendarexporter.desktop) | ||
40 | 50 | | |||
51 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
52 | set_target_properties(kcm_icalendarexporter | ||||
53 | PROPERTIES | ||||
54 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
55 | | ||||
41 | target_link_libraries(kcm_icalendarexporter | 56 | target_link_libraries(kcm_icalendarexporter | ||
42 | KF5::I18n | 57 | KF5::I18n | ||
43 | KF5::ConfigWidgets | 58 | KF5::ConfigWidgets | ||
44 | KF5::KIOWidgets | 59 | KF5::KIOWidgets | ||
45 | KF5::Completion | 60 | KF5::Completion | ||
46 | Qt5::Widgets | 61 | Qt5::Widgets | ||
47 | Qt5::Gui | 62 | Qt5::Gui | ||
48 | ) | 63 | ) | ||
49 | 64 | | |||
50 | install(TARGETS kcm_icalendarexporter | | |||
51 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney") | | |||
52 | | ||||
53 | install(FILES kcm_icalendarexporter.desktop | 65 | install(FILES kcm_icalendarexporter.desktop | ||
54 | DESTINATION ${SERVICES_INSTALL_DIR}) | 66 | DESTINATION ${SERVICES_INSTALL_DIR}) |