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

0001 add_subdirectory( xmlhelper )
0002 add_subdirectory( storage )
0003 add_subdirectory( payeeidentifier )
0004 
0005 ########### next target ###############
0006 
0007 set(kmm_mymoney_LIB_SRCS
0008   mymoneymoney.cpp mymoneyfinancialcalculator.cpp
0009   mymoneytransactionfilter.cpp
0010   mymoneyfile.cpp mymoneykeyvaluecontainer.cpp
0011   mymoneyobject.cpp
0012   mymoneypayeeidentifiercontainer.cpp
0013   mymoneysplit.cpp mymoneyinstitution.cpp
0014   mymoneyinvesttransaction.cpp mymoneyutils.cpp
0015   mymoneysecurity.cpp mymoneytransaction.cpp mymoneyschedule.cpp
0016   mymoneypayee.cpp mymoneytracer.cpp
0017   mymoneytag.cpp
0018   mymoneycategory.cpp
0019   mymoneycostcenter.cpp
0020   mymoneyaccount.cpp mymoneyaccountloan.cpp
0021   mymoneyreport.cpp mymoneystatement.cpp mymoneyprice.cpp mymoneybudget.cpp
0022   mymoneyforecast.cpp
0023   mymoneyqifprofile.cpp
0024   mymoneytemplate.cpp
0025   mymoneybalancecache.cpp
0026   onlinejob.cpp
0027   onlinejobadministration.cpp
0028   onlinejobmessage.cpp
0029   onlinejobfolder.cpp
0030   mymoneycontact.cpp
0031   payeeidentifiermodel.cpp
0032   statusmodel.cpp
0033   splitmodel.cpp
0034   )
0035 
0036   # storage_a_SOURCES cannot be set in storage directory on MS Windows
0037   # because, while building kmm_storage, linker reports many undefined symbols
0038   # which are in fact available in kmm_mymoney
0039   set(storage_a_SOURCES
0040     ./storage/imymoneystorageformat.cpp
0041     ./storage/mymoneymodelbase.cpp
0042     ./storage/payeesmodel.cpp
0043     ./storage/costcentermodel.cpp
0044     ./storage/schedulesmodel.cpp
0045     ./storage/tagsmodel.cpp
0046     ./storage/securitiesmodel.cpp
0047     ./storage/budgetsmodel.cpp
0048     ./storage/accountsmodel.cpp
0049     ./storage/institutionsmodel.cpp
0050     ./storage/journalmodel.cpp
0051     ./storage/pricemodel.cpp
0052     ./storage/parametersmodel.cpp
0053     ./storage/onlinejobsmodel.cpp
0054     ./storage/reportsmodel.cpp
0055     ./storage/reconciliationmodel.cpp
0056     ./storage/specialdatesmodel.cpp
0057     ./storage/schedulesjournalmodel.cpp
0058     ./storage/templatesmodel.cpp
0059     )
0060 
0061   set(onlineTask_a_SOURCES
0062   ./onlinetasks/sepa/sepaonlinetransferimpl.cpp
0063   ./onlinetasks/sepa/sepaonlinetransfer.cpp
0064   ./onlinetasks/unavailabletask/tasks/unavailabletask.cpp
0065   )
0066 
0067   set(xmlhelper_a_SOURCES
0068   ./xmlhelper/xmlstoragehelper.cpp
0069   )
0070 
0071   # NOTE: this payeeIdentifier and its cmake file cannot be used as a template
0072   # This payeeIdentifier must be linked with payeeIdentifierLoader because it
0073   # is a fallback if something failed during loading of plugins (for xml files only)
0074   set(payeeidentifier_a_SOURCES
0075   ./payeeidentifier/ibanbic/ibanbic.cpp
0076   ./payeeidentifier/nationalaccount/nationalaccount.cpp
0077   ./payeeidentifier/unavailableplugin/unavailableplugin.cpp
0078   )
0079 
0080 list(APPEND storage_a_SOURCES $<$<OR:$<CONFIG:Debug>,$<CONFIG:DebugFull>,$<CONFIG:DebugKMM>>: ./storage/mymoneystoragedump.cpp>)
0081 list(APPEND kmm_mymoney_LIB_SRCS ${storage_a_SOURCES})
0082 list(APPEND kmm_mymoney_LIB_SRCS ${onlineTask_a_SOURCES})
0083 list(APPEND kmm_mymoney_LIB_SRCS ${payeeidentifier_a_SOURCES})
0084 list(APPEND kmm_mymoney_LIB_SRCS ${xmlhelper_a_SOURCES})
0085 
0086 set(mymoney_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/kmm_mymoney_export.h
0087   mymoneyobject.h mymoneyaccount.h mymoneycategory.h mymoneyexception.h
0088   mymoneyfile.h mymoneyfinancialcalculator.h mymoneyinstitution.h
0089   mymoneyinvesttransaction.h mymoneykeyvaluecontainer.h mymoneymoney.h
0090   mymoneypayee.h mymoneytag.h mymoneyprice.h mymoneyreport.h
0091   mymoneyschedule.h mymoneysecurity.h mymoneysplit.h mymoneystatement.h
0092   mymoneytransactionfilter.h mymoneytransaction.h
0093   mymoneyutils.h mymoneybudget.h mymoneyforecast.h
0094   imymoneyprocessingcalendar.h
0095   mymoneycostcenter.h
0096   mymoneyenums.h
0097   mymoneyqifprofile.h
0098   mymoneytemplate.h
0099   mymoneyunittestable.h
0100   mymoneypayeeidentifiercontainer.h
0101   onlinejob.h
0102   onlinejobtyped.h
0103   onlinejobmessage.h
0104   onlinejobfolder.h
0105   )
0106 
0107 add_library(kmm_mymoney ${kmm_mymoney_LIB_SRCS})
0108 
0109 if (USE_MODELTEST)
0110   target_compile_definitions(kmm_mymoney PRIVATE -DKMM_MODELTEST)
0111 endif()
0112 
0113 generate_export_header(kmm_mymoney BASE_NAME kmm_mymoney)
0114 
0115 target_link_libraries(kmm_mymoney
0116                       PUBLIC
0117                       kmm_icons
0118                       Qt::Xml
0119                       Qt::Core
0120                       Qt::Gui
0121                       KF5::Service
0122                       KF5::I18n
0123                       KF5::ItemModels
0124                       KF5::ConfigCore
0125                       Alkimia::alkimia
0126                       kmm_payeeidentifier
0127                       kmm_plugin
0128                       # TODO: fix this
0129                       KF5::XmlGui
0130                       PRIVATE
0131                       kmm_keychain
0132                       onlinetask_interfaces
0133                       $<$<BOOL:${USE_MODELTEST}>:Qt::Test>
0134 )
0135 
0136 if(ENABLE_ADDRESSBOOK)
0137 target_link_libraries(kmm_mymoney PUBLIC ${PIMPREFIX}::IdentityManagement ${PIMPREFIX}::AkonadiCore KF5::Contacts)
0138 endif()
0139 
0140 set_target_properties(kmm_mymoney PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
0141 
0142 ########### install files ###############
0143 
0144 install(TARGETS kmm_mymoney
0145   ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0146 
0147 install(FILES ${mymoney_HEADERS}
0148   DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kmymoney COMPONENT Devel)
0149 
0150 ############## tests ####################
0151 
0152 if(BUILD_TESTING)
0153   add_subdirectory(tests)
0154 endif()