Warning, /office/kmymoney/kmymoney/mymoney/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_subdirectory( storage ) 0002 add_subdirectory( payeeidentifier ) 0003 0004 ########### next target ############### 0005 0006 set(kmm_mymoney_LIB_SRCS 0007 mymoneymoney.cpp mymoneyfinancialcalculator.cpp 0008 mymoneytransactionfilter.cpp 0009 mymoneyfile.cpp mymoneykeyvaluecontainer.cpp 0010 mymoneyobject.cpp 0011 mymoneypayeeidentifiercontainer.cpp 0012 mymoneysplit.cpp mymoneyinstitution.cpp 0013 mymoneyinvesttransaction.cpp mymoneyutils.cpp 0014 mymoneysecurity.cpp mymoneytransaction.cpp mymoneyschedule.cpp 0015 mymoneypayee.cpp mymoneytracer.cpp 0016 mymoneytag.cpp 0017 mymoneycategory.cpp 0018 mymoneycostcenter.cpp 0019 mymoneyaccount.cpp mymoneyaccountloan.cpp 0020 mymoneyreport.cpp mymoneystatement.cpp mymoneyprice.cpp mymoneybudget.cpp 0021 mymoneyforecast.cpp 0022 mymoneybalancecache.cpp 0023 onlinejob.cpp 0024 onlinejobadministration.cpp 0025 onlinejobmessage.cpp 0026 onlinejobfolder.cpp 0027 mymoneycontact.cpp 0028 payeeidentifiermodel.cpp 0029 ) 0030 0031 # storage_a_SOURCES cannot be set in storage directory on MS Windows 0032 # because, while building kmm_storage, linker reports many undefined symbols 0033 # which are in fact available in kmm_mymoney 0034 set(storage_a_SOURCES 0035 ./storage/imymoneystorageformat.cpp 0036 ./storage/mymoneystoragemgr.cpp 0037 ./storage/payeesmodel.cpp 0038 ) 0039 0040 set(onlineTask_a_SOURCES 0041 ./onlinetasks/sepa/sepaonlinetransferimpl.cpp 0042 ./onlinetasks/sepa/sepaonlinetransfer.cpp 0043 ./onlinetasks/unavailabletask/tasks/unavailabletask.cpp 0044 ) 0045 0046 # NOTE: this payeeIdentifier and its cmake file cannot be used as a template 0047 # This payeeIdentifier must be linked with payeeIdentifierLoader because it 0048 # is a fallback if something failed during loading of plugins (for xml files only) 0049 set(payeeidentifier_a_SOURCES 0050 ./payeeidentifier/ibanbic/ibanbic.cpp 0051 ./payeeidentifier/nationalaccount/nationalaccount.cpp 0052 ./payeeidentifier/unavailableplugin/unavailableplugin.cpp 0053 ) 0054 0055 list(APPEND storage_a_SOURCES $<$<OR:$<CONFIG:Debug>,$<CONFIG:DebugFull>,$<CONFIG:DebugKMM>>: ./storage/mymoneystoragedump.cpp>) 0056 0057 list(APPEND kmm_mymoney_LIB_SRCS ${storage_a_SOURCES}) 0058 list(APPEND kmm_mymoney_LIB_SRCS ${onlineTask_a_SOURCES}) 0059 list(APPEND kmm_mymoney_LIB_SRCS ${payeeidentifier_a_SOURCES}) 0060 0061 set(mymoney_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/kmm_mymoney_export.h 0062 mymoneyobject.h mymoneyaccount.h mymoneycategory.h mymoneyexception.h 0063 mymoneyfile.h mymoneyfinancialcalculator.h mymoneyinstitution.h 0064 mymoneyinvesttransaction.h mymoneykeyvaluecontainer.h mymoneymoney.h 0065 mymoneypayee.h mymoneytag.h mymoneyprice.h mymoneyreport.h 0066 mymoneyschedule.h mymoneysecurity.h mymoneysplit.h mymoneystatement.h 0067 mymoneytransactionfilter.h mymoneytransaction.h 0068 mymoneyutils.h mymoneybudget.h mymoneyforecast.h 0069 imymoneyprocessingcalendar.h 0070 mymoneycostcenter.h 0071 mymoneyenums.h 0072 mymoneyunittestable.h 0073 mymoneypayeeidentifiercontainer.h 0074 onlinejob.h 0075 onlinejobtyped.h 0076 onlinejobmessage.h 0077 onlinejobfolder.h 0078 ) 0079 0080 add_library(kmm_mymoney SHARED ${kmm_mymoney_LIB_SRCS}) 0081 0082 generate_export_header(kmm_mymoney BASE_NAME kmm_mymoney) 0083 0084 target_link_libraries(kmm_mymoney 0085 PUBLIC 0086 kmm_icons 0087 Qt5::Xml 0088 Qt5::Core 0089 Qt5::Gui 0090 KF5::Service 0091 KF5::I18n 0092 Alkimia::alkimia 0093 kmm_payeeidentifier 0094 kmm_plugin 0095 # TODO: fix this 0096 KF5::XmlGui 0097 PRIVATE 0098 onlinetask_interfaces 0099 ) 0100 0101 if(ENABLE_ADDRESSBOOK) 0102 target_link_libraries(kmm_mymoney PUBLIC ${PIMPREFIX}::IdentityManagement ${PIMPREFIX}::AkonadiCore KF5::Contacts) 0103 endif() 0104 0105 set_target_properties(kmm_mymoney PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) 0106 0107 ########### install files ############### 0108 0109 install(TARGETS kmm_mymoney 0110 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0111 0112 install(FILES ${mymoney_HEADERS} 0113 DESTINATION ${INCLUDE_INSTALL_DIR}/kmymoney COMPONENT Devel) 0114 0115 ############## tests #################### 0116 0117 if(BUILD_TESTING) 0118 add_subdirectory(tests) 0119 endif()