Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/CMakeLists.txt
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | endif() | 57 | endif() | ||
58 | 58 | | |||
59 | # The handling of these ui files depends | 59 | # The handling of these ui files depends | ||
60 | # on libkmymoney.so (the widgets library) | 60 | # on libkmymoney.so (the widgets library) | ||
61 | ki18n_wrap_ui(libviews_a_SOURCES ${libviews_a_UI}) | 61 | ki18n_wrap_ui(libviews_a_SOURCES ${libviews_a_UI}) | ||
62 | 62 | | |||
63 | add_library(views STATIC ${libviews_a_SOURCES}) | 63 | add_library(views STATIC ${libviews_a_SOURCES}) | ||
64 | 64 | | |||
65 | target_link_libraries(views PUBLIC newaccountwizard KChart KF5::KIOFileWidgets KF5::Notifications KF5::Archive KF5::TextWidgets Qt5::PrintSupport Alkimia::alkimia) | 65 | target_link_libraries(views PUBLIC newaccountwizard KF5::TextWidgets Qt5::PrintSupport) | ||
66 | 66 | | |||
67 | if(ENABLE_WEBENGINE) | 67 | if(ENABLE_WEBENGINE) | ||
68 | target_link_libraries(views PUBLIC Qt5::WebEngineWidgets) | 68 | target_link_libraries(views PUBLIC Qt5::WebEngineWidgets) | ||
69 | else(ENABLE_WEBENGINE) | 69 | else(ENABLE_WEBENGINE) | ||
70 | target_link_libraries(views PUBLIC KF5::WebKit) | 70 | target_link_libraries(views PUBLIC KF5::WebKit) | ||
71 | endif(ENABLE_WEBENGINE) | 71 | endif(ENABLE_WEBENGINE) | ||
72 | 72 | | |||
73 | # TODO: Remove this dependency. But it is needed as long as the payee editor uses these objects directly | 73 | # TODO: Remove this dependency. But it is needed as long as the payee editor uses these objects directly | ||
74 | # This should be replaced by virtual methods in a pure abstract object. | 74 | # This should be replaced by virtual methods in a pure abstract object. | ||
75 | target_link_libraries( views PUBLIC | 75 | target_link_libraries( views PUBLIC | ||
76 | kmm_mymoney # needed to load payeeIdentifier | 76 | kmm_mymoney # needed to load payeeIdentifier | ||
77 | kmm_widgets | 77 | kmm_widgets | ||
78 | ) | 78 | ) | ||
79 | 79 | | |||
80 | # we rely on some of the dialogs to be generated | 80 | # we rely on some of the dialogs to be generated | ||
81 | add_dependencies(views dialogs newinvestmentwizard newaccountwizard newloanwizard endingbalancedlg) | 81 | add_dependencies(views dialogs newinvestmentwizard newaccountwizard newloanwizard endingbalancedlg) |