Warning, /office/kmymoney/kmymoney/views/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ############# next target (views) STATIC ###################
0002 set(libviews_a_SOURCES
0003   kaccountsview.cpp
0004   kcategoriesview.cpp
0005   kgloballedgerview.cpp
0006   kwelcomepage.cpp
0007   khomeview.cpp
0008   kinstitutionsview.cpp
0009   kinvestmentview.cpp
0010   kmymoneyfile.cpp
0011   kmymoneyview.cpp
0012   kpayeesview.cpp
0013   kscheduledview.cpp
0014   kscheduletreeitem.cpp
0015   ktagsview.cpp
0016   kpayeeidentifierview.cpp
0017   payeeidentifierselectiondelegate.cpp
0018   kmymoneywebpage.cpp
0019 )
0020 
0021 if(ENABLE_UNFINISHEDFEATURES)
0022   list(APPEND libviews_a_SOURCES
0023     simpleledgerview.cpp
0024     ledgerviewpage.cpp
0025     ledgerview.cpp
0026     ledgerdelegate.cpp
0027     newspliteditor.cpp
0028     newtransactioneditor.cpp
0029     newtransactionform.cpp
0030     splitdialog.cpp
0031     splitdelegate.cpp
0032     widgethintframe.cpp
0033   )
0034 endif()
0035 
0036 set(libviews_a_UI
0037   kaccountsview.ui
0038   kcategoriesview.ui
0039   kinstitutionsview.ui
0040   kinvestmentview.ui
0041   kpayeesview.ui
0042   kscheduledview.ui
0043   ktagsview.ui
0044   kpayeeidentifierview.ui
0045 )
0046 
0047 if(ENABLE_UNFINISHEDFEATURES)
0048   list(APPEND libviews_a_UI
0049     simpleledgerview.ui
0050     ledgerview.ui
0051     ledgerviewpage.ui
0052     splitdialog.ui
0053     newspliteditor.ui
0054     newtransactioneditor.ui
0055     newtransactionform.ui
0056   )
0057 endif()
0058 
0059 # The handling of these ui files depends
0060 # on libkmymoney.so (the widgets library)
0061 ki18n_wrap_ui(libviews_a_SOURCES ${libviews_a_UI})
0062 
0063 add_library(views STATIC ${libviews_a_SOURCES})
0064 
0065 target_link_libraries(views PUBLIC newaccountwizard KF5::TextWidgets Qt5::PrintSupport)
0066 
0067 if(ENABLE_WEBENGINE)
0068  target_link_libraries(views PUBLIC Qt5::WebEngineWidgets)
0069 else(ENABLE_WEBENGINE)
0070  target_link_libraries(views PUBLIC KF5::WebKit)
0071 endif(ENABLE_WEBENGINE)
0072 
0073 # TODO: Remove this dependency. But it is needed as long as the payee editor uses these objects directly
0074 # This should be replaced by virtual methods in a pure abstract object.
0075 target_link_libraries( views PUBLIC
0076   kmm_mymoney # needed to load payeeIdentifier
0077   kmm_widgets
0078   kmm_printer
0079 )
0080 
0081 # we rely on some of the dialogs to be generated
0082 add_dependencies(views dialogs newinvestmentwizard newaccountwizard newloanwizard endingbalancedlg)