Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/csv/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}/csvexporter.json.in ${CMAKE_CURRENT_BINARY_DIR}/csvexporter.json @ONLY) | 2 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/csvexporter.json.in ${CMAKE_CURRENT_BINARY_DIR}/csvexporter.json @ONLY) | ||
3 | 3 | | |||
4 | ########### next target ############### | 4 | ########### next target ############### | ||
5 | 5 | | |||
6 | set(csvexporter_PART_SRCS | 6 | set(csvexporter_PART_SRCS | ||
7 | csvexporter.cpp | 7 | csvexporter.cpp | ||
8 | csvwriter.cpp | 8 | csvwriter.cpp | ||
9 | csvexportdlg.cpp | 9 | csvexportdlg.cpp | ||
10 | ) | 10 | ) | ||
11 | 11 | | |||
12 | ki18n_wrap_ui(csvexporter_PART_SRCS | 12 | ki18n_wrap_ui(csvexporter_PART_SRCS | ||
13 | csvexportdlg.ui | 13 | csvexportdlg.ui | ||
14 | ) | 14 | ) | ||
15 | 15 | | |||
16 | add_library(csvexporter MODULE | 16 | kcoreaddons_add_plugin(csvexporter | ||
17 | ${csvexporter_PART_SRCS} | 17 | SOURCES ${csvexporter_PART_SRCS} | ||
18 | ) | 18 | JSON "${CMAKE_CURRENT_BINARY_DIR}/csvexporter.json" | ||
19 | INSTALL_NAMESPACE "kmymoney") | ||||
20 | | ||||
21 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
22 | set_target_properties(csvexporter | ||||
23 | PROPERTIES | ||||
24 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
19 | 25 | | |||
20 | target_link_libraries(csvexporter | 26 | target_link_libraries(csvexporter | ||
21 | kmm_mymoney kmm_plugin | 27 | kmm_mymoney kmm_plugin | ||
22 | Alkimia::alkimia | 28 | Alkimia::alkimia | ||
23 | ) | 29 | ) | ||
24 | 30 | | |||
25 | ########### install files ############### | 31 | ########### install files ############### | ||
26 | 32 | | |||
27 | install(FILES csvexporter.rc | 33 | install(FILES csvexporter.rc | ||
28 | DESTINATION "${KXMLGUI_INSTALL_DIR}/csvexporter") | 34 | DESTINATION "${KXMLGUI_INSTALL_DIR}/csvexporter") | ||
29 | 35 | | |||
30 | install(TARGETS csvexporter | | |||
31 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney/") | | |||
32 | | ||||
33 | | ||||
34 | #INSTALL(FILES csvexporterrc | 36 | #INSTALL(FILES csvexporterrc | ||
35 | # DESTINATION ${CONFIG_INSTALL_DIR}) | 37 | # DESTINATION ${CONFIG_INSTALL_DIR}) |