Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/ofx/import/CMakeLists.txt
Show All 14 Lines | |||||
15 | ) | 15 | ) | ||
16 | 16 | | |||
17 | set(ofximporter_PART_UI | 17 | set(ofximporter_PART_UI | ||
18 | importoption.ui | 18 | importoption.ui | ||
19 | ) | 19 | ) | ||
20 | 20 | | |||
21 | ki18n_wrap_ui(ofximporter_PART_SRCS ${ofximporter_PART_UI}) | 21 | ki18n_wrap_ui(ofximporter_PART_SRCS ${ofximporter_PART_UI}) | ||
22 | 22 | | |||
23 | add_library(ofximporter MODULE ${ofximporter_PART_SRCS}) | 23 | kcoreaddons_add_plugin(ofximporter | ||
24 | SOURCES ${ofximporter_PART_SRCS} | ||||
25 | JSON "${CMAKE_CURRENT_BINARY_DIR}/ofximporter.json" | ||||
26 | INSTALL_NAMESPACE "kmymoney") | ||||
27 | | ||||
28 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
29 | set_target_properties(ofximporter | ||||
30 | PROPERTIES | ||||
31 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
24 | 32 | | |||
25 | target_link_libraries(ofximporter | 33 | target_link_libraries(ofximporter | ||
26 | ofximporter_dialogs | 34 | ofximporter_dialogs | ||
27 | kmm_mymoney | 35 | kmm_mymoney | ||
28 | kmm_widgets | 36 | kmm_widgets | ||
29 | kmm_plugin | 37 | kmm_plugin | ||
30 | KF5::Wallet | 38 | KF5::Wallet | ||
31 | Qt5::Xml | 39 | Qt5::Xml | ||
32 | Alkimia::alkimia | 40 | Alkimia::alkimia | ||
33 | ${LIBOFX_LIBRARIES} | 41 | ${LIBOFX_LIBRARIES} | ||
34 | ) | 42 | ) | ||
35 | 43 | | |||
36 | target_include_directories(ofximporter | 44 | target_include_directories(ofximporter | ||
37 | PRIVATE | 45 | PRIVATE | ||
38 | ${CMAKE_CURRENT_SOURCE_DIR}/dialogs | 46 | ${CMAKE_CURRENT_SOURCE_DIR}/dialogs | ||
39 | ${CMAKE_CURRENT_BINARY_DIR}/dialogs | 47 | ${CMAKE_CURRENT_BINARY_DIR}/dialogs | ||
40 | ${LIBOFX_INCLUDE_DIR} | 48 | ${LIBOFX_INCLUDE_DIR} | ||
41 | ) | 49 | ) | ||
42 | 50 | | |||
43 | ########### install files ############### | 51 | ########### install files ############### | ||
44 | 52 | | |||
45 | install(FILES ofximporter.rc | 53 | install(FILES ofximporter.rc | ||
46 | DESTINATION "${KXMLGUI_INSTALL_DIR}/ofximporter") | 54 | DESTINATION "${KXMLGUI_INSTALL_DIR}/ofximporter") | ||
47 | | ||||
48 | install(TARGETS ofximporter | | |||
49 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney/") | |