Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/gnc/import/CMakeLists.txt
Show All 12 Lines | |||||
13 | 13 | | |||
14 | set(gncimporter_PART_UI | 14 | set(gncimporter_PART_UI | ||
15 | kgncimportoptionsdlg.ui | 15 | kgncimportoptionsdlg.ui | ||
16 | kgncpricesourcedlg.ui | 16 | kgncpricesourcedlg.ui | ||
17 | ) | 17 | ) | ||
18 | 18 | | |||
19 | ki18n_wrap_ui(gncimporter_PART_SRCS ${gncimporter_PART_UI}) | 19 | ki18n_wrap_ui(gncimporter_PART_SRCS ${gncimporter_PART_UI}) | ||
20 | 20 | | |||
21 | add_library(gncimporter MODULE ${gncimporter_PART_SRCS}) | 21 | kcoreaddons_add_plugin(gncimporter | ||
22 | SOURCES ${gncimporter_PART_SRCS} | ||||
23 | JSON "${CMAKE_CURRENT_BINARY_DIR}/gncimporter.json" | ||||
24 | INSTALL_NAMESPACE "kmymoney") | ||||
25 | | ||||
26 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
27 | set_target_properties(gncimporter | ||||
28 | PROPERTIES | ||||
29 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
22 | 30 | | |||
23 | target_link_libraries(gncimporter | 31 | target_link_libraries(gncimporter | ||
24 | kmm_plugin | 32 | kmm_plugin | ||
25 | Alkimia::alkimia | 33 | Alkimia::alkimia | ||
26 | ) | 34 | ) | ||
27 | | ||||
28 | ########### install files ############### | | |||
29 | | ||||
30 | install(TARGETS gncimporter | | |||
31 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney/") | |