Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/views/reports/CMakeLists.txt
- This file was added.
1 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/reportsview.json.in ${CMAKE_CURRENT_BINARY_DIR}/reportsview.json @ONLY) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | set(reportsview_SOURCES | ||||
4 | reportsview.cpp | ||||
5 | kreportsview.cpp | ||||
6 | tocitem.cpp | ||||
7 | tocitemgroup.cpp | ||||
8 | tocitemreport.cpp | ||||
9 | kreportconfigurationfilterdlg.cpp | ||||
10 | reporttabimpl.cpp | ||||
11 | reportcontrolimpl.cpp | ||||
12 | ../../../views/kmymoneywebpage.cpp | ||||
13 | ) | ||||
14 | | ||||
15 | ki18n_wrap_ui(reportsview_SOURCES | ||||
16 | kreportconfigurationfilterdlg.ui | ||||
17 | reportcontrol.ui | ||||
18 | reporttabgeneral.ui | ||||
19 | reporttabrowcolquery.ui | ||||
20 | reporttabrowcolpivot.ui | ||||
21 | reporttabrange.ui | ||||
22 | reporttabchart.ui | ||||
23 | reporttabcapitalgain.ui | ||||
24 | reporttabperformance.ui | ||||
25 | ) | ||||
26 | # kconfig_add_kcfg_files(reportsview_SOURCES reportsviewsettings.kcfgc) | ||||
27 | | ||||
28 | kcoreaddons_add_plugin(reportsview | ||||
29 | SOURCES ${reportsview_SOURCES} | ||||
30 | JSON "${CMAKE_CURRENT_BINARY_DIR}/reportsview.json" | ||||
31 | INSTALL_NAMESPACE "kmymoney") | ||||
32 | | ||||
33 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
34 | set_target_properties(reportsview | ||||
35 | PROPERTIES | ||||
36 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
37 | | ||||
38 | target_link_libraries(reportsview | ||||
39 | PUBLIC | ||||
40 | kmm_plugin | ||||
41 | KF5::TextWidgets | ||||
42 | KF5::KIOCore | ||||
43 | KF5::KIOFileWidgets | ||||
44 | KF5::KIOWidgets | ||||
45 | KF5::KIONTLM | ||||
46 | reports | ||||
47 | viewbase | ||||
48 | kmm_menus | ||||
49 | ) | ||||
50 | | ||||
51 | if(ENABLE_WEBENGINE) | ||||
52 | target_link_libraries(reportsview PRIVATE Qt5::WebEngineWidgets) | ||||
53 | else(ENABLE_WEBENGINE) | ||||
54 | target_link_libraries(reportsview PRIVATE KF5::WebKit) | ||||
55 | endif(ENABLE_WEBENGINE) | ||||
56 | | ||||
57 | # the KCM module | ||||
58 | | ||||
59 | set(kcm_reportsview_PART_SRCS | ||||
60 | kcm_reportsview.cpp | ||||
61 | ) | ||||
62 | | ||||
63 | kconfig_add_kcfg_files(kcm_reportsview_PART_SRCS reportsviewsettings.kcfgc) | ||||
64 | | ||||
65 | ki18n_wrap_ui(kcm_reportsview_PART_SRCS reportsviewsettings.ui) | ||||
66 | | ||||
67 | kcoreaddons_add_plugin(kcm_reportsview | ||||
68 | SOURCES ${kcm_reportsview_PART_SRCS} | ||||
69 | JSON "${CMAKE_CURRENT_BINARY_DIR}/kcm_reportsview.json" | ||||
70 | INSTALL_NAMESPACE "kmymoney") | ||||
71 | | ||||
72 | kcoreaddons_desktop_to_json(kcm_reportsview kcm_reportsview.desktop) | ||||
73 | | ||||
74 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
75 | set_target_properties(kcm_reportsview | ||||
76 | PROPERTIES | ||||
77 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
78 | | ||||
79 | target_link_libraries(kcm_reportsview | ||||
80 | KF5::I18n | ||||
81 | KF5::ConfigWidgets | ||||
82 | KF5::Completion | ||||
83 | KF5::KIOWidgets | ||||
84 | KF5::CoreAddons | ||||
85 | kmm_settings | ||||
86 | ) | ||||
87 | | ||||
88 | install(FILES kcm_reportsview.desktop | ||||
89 | DESTINATION "${SERVICES_INSTALL_DIR}") |