Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/csv/import/CMakeLists.txt
1 | add_subdirectory(core) | 1 | add_subdirectory(core) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | if(NOT ENABLE_CSVIMPORTER) | 3 | if(NOT ENABLE_CSVIMPORTER) | ||
4 | return() | 4 | return() | ||
5 | endif() | 5 | endif() | ||
6 | 6 | | |||
7 | # patch the version with the version defined in the build system | 7 | # patch the version with the version defined in the build system | ||
8 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/csvimport.json.in ${CMAKE_CURRENT_BINARY_DIR}/csvimport.json @ONLY) | 8 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/csvimporter.json.in ${CMAKE_CURRENT_BINARY_DIR}/csvimporter.json @ONLY) | ||
9 | 9 | | |||
10 | ########### next target ############### | 10 | ########### next target ############### | ||
11 | 11 | | |||
12 | set(kmm_csvimport_PART_SRCS | 12 | set(csvimporter_PART_SRCS | ||
13 | csvimporterplugin.cpp | 13 | csvimporter.cpp | ||
14 | csvwizard.cpp | 14 | csvwizard.cpp | ||
15 | bankingwizardpage.cpp | 15 | bankingwizardpage.cpp | ||
16 | investmentwizardpage.cpp | 16 | investmentwizardpage.cpp | ||
17 | priceswizardpage.cpp | 17 | priceswizardpage.cpp | ||
18 | transactiondlg.cpp | 18 | transactiondlg.cpp | ||
19 | securitiesdlg.cpp | 19 | securitiesdlg.cpp | ||
20 | securitydlg.cpp | 20 | securitydlg.cpp | ||
21 | currenciesdlg.cpp | 21 | currenciesdlg.cpp | ||
22 | ) | 22 | ) | ||
23 | 23 | | |||
24 | kconfig_add_kcfg_files(kmm_csvimport_PART_SRCS pluginsettings.kcfgc) | 24 | kconfig_add_kcfg_files(csvimporter_PART_SRCS pluginsettings.kcfgc) | ||
25 | 25 | | |||
26 | ki18n_wrap_ui(kmm_csvimport_PART_SRCS | 26 | ki18n_wrap_ui(csvimporter_PART_SRCS | ||
27 | csvwizard.ui | 27 | csvwizard.ui | ||
28 | transactiondlg.ui | 28 | transactiondlg.ui | ||
29 | introwizardpage.ui | 29 | introwizardpage.ui | ||
30 | separatorwizardpage.ui | 30 | separatorwizardpage.ui | ||
31 | rowswizardpage.ui | 31 | rowswizardpage.ui | ||
32 | bankingwizardpage.ui | 32 | bankingwizardpage.ui | ||
33 | investmentwizardpage.ui | 33 | investmentwizardpage.ui | ||
34 | priceswizardpage.ui | 34 | priceswizardpage.ui | ||
35 | formatswizardpage.ui | 35 | formatswizardpage.ui | ||
36 | securitiesdlg.ui | 36 | securitiesdlg.ui | ||
37 | securitydlg.ui | 37 | securitydlg.ui | ||
38 | currenciesdlg.ui | 38 | currenciesdlg.ui | ||
39 | ) | 39 | ) | ||
40 | 40 | | |||
41 | # Use static library for tests and prices importer only | 41 | # Use static library for tests and prices importer only | ||
42 | add_library(kmm_csvimport MODULE ${kmm_csvimport_PART_SRCS}) | 42 | add_library(csvimporter MODULE ${csvimporter_PART_SRCS}) | ||
43 | 43 | | |||
44 | target_link_libraries(kmm_csvimport | 44 | target_link_libraries(csvimporter | ||
45 | PUBLIC | 45 | PUBLIC | ||
46 | kmm_csvimport_core | 46 | kmm_csvimportercore | ||
47 | kmm_plugin | 47 | kmm_plugin | ||
48 | ) | 48 | ) | ||
49 | 49 | | |||
50 | ########### install files ############### | 50 | ########### install files ############### | ||
51 | 51 | | |||
52 | install(FILES kmm_csvimport.rc | 52 | install(FILES csvimporter.rc | ||
53 | DESTINATION "${KXMLGUI_INSTALL_DIR}/kmm_csvimport") | 53 | DESTINATION "${KXMLGUI_INSTALL_DIR}/csvimporter") | ||
54 | 54 | | |||
55 | install(TARGETS kmm_csvimport | 55 | install(TARGETS csvimporter | ||
56 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney/") | 56 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney/") | ||
57 | 57 | | |||
58 | # the KCM module | 58 | # the KCM module | ||
59 | set(kcm_kmm_csvimport_PART_SRCS | 59 | set(kcm_csvimporter_PART_SRCS | ||
60 | kcm_csvimport.cpp | 60 | kcm_csvimporter.cpp | ||
61 | ) | 61 | ) | ||
62 | 62 | | |||
63 | kconfig_add_kcfg_files(kcm_kmm_csvimport_PART_SRCS pluginsettings.kcfgc) | 63 | kconfig_add_kcfg_files(kcm_csvimporter_PART_SRCS pluginsettings.kcfgc) | ||
64 | 64 | | |||
65 | ki18n_wrap_ui(kcm_kmm_csvimport_PART_SRCS pluginsettingsdecl.ui) | 65 | ki18n_wrap_ui(kcm_csvimporter_PART_SRCS pluginsettingsdecl.ui) | ||
66 | 66 | | |||
67 | add_library(kcm_kmm_csvimport MODULE ${kcm_kmm_csvimport_PART_SRCS}) | 67 | add_library(kcm_csvimporter MODULE ${kcm_csvimporter_PART_SRCS}) | ||
68 | 68 | | |||
69 | kcoreaddons_desktop_to_json(kcm_kmm_csvimport kcm_kmm_csvimport.desktop) | 69 | kcoreaddons_desktop_to_json(kcm_csvimporter kcm_csvimporter.desktop) | ||
70 | 70 | | |||
71 | target_link_libraries(kcm_kmm_csvimport | 71 | target_link_libraries(kcm_csvimporter | ||
72 | KF5::I18n | 72 | KF5::I18n | ||
73 | KF5::ConfigWidgets | 73 | KF5::ConfigWidgets | ||
74 | ) | 74 | ) | ||
75 | 75 | | |||
76 | install(TARGETS kcm_kmm_csvimport | 76 | install(TARGETS kcm_csvimporter | ||
77 | DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 77 | DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||
78 | 78 | | |||
79 | install(FILES kcm_kmm_csvimport.desktop | 79 | install(FILES kcm_csvimporter.desktop | ||
80 | DESTINATION ${SERVICES_INSTALL_DIR}) | 80 | DESTINATION ${SERVICES_INSTALL_DIR}) |