Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/CMakeLists.txt
Show All 34 Lines | 34 | set(storage_a_SOURCES | |||
---|---|---|---|---|---|
35 | ./storage/imymoneystorageformat.cpp | 35 | ./storage/imymoneystorageformat.cpp | ||
36 | ./storage/mymoneystoragexml.cpp | 36 | ./storage/mymoneystoragexml.cpp | ||
37 | ./storage/mymoneystoragemgr.cpp | 37 | ./storage/mymoneystoragemgr.cpp | ||
38 | ./storage/mymoneystorageanon.cpp | 38 | ./storage/mymoneystorageanon.cpp | ||
39 | ./storage/kmymoneystorageplugin.cpp | 39 | ./storage/kmymoneystorageplugin.cpp | ||
40 | ./storage/mymoneystoragenames.cpp | 40 | ./storage/mymoneystoragenames.cpp | ||
41 | ) | 41 | ) | ||
42 | 42 | | |||
43 | if(KMM_DEBUG) | 43 | list(APPEND storage_a_SOURCES $<$<OR:$<CONFIG:Debug>,$<CONFIG:DebugFull>,$<CONFIG:DebugKMM>>: ./storage/mymoneystoragedump.cpp>) | ||
44 | list(APPEND storage_a_SOURCES ./storage/mymoneystoragedump.cpp) | | |||
45 | endif() | | |||
46 | 44 | | |||
47 | list(APPEND kmm_mymoney_LIB_SRCS ${storage_a_SOURCES}) | 45 | list(APPEND kmm_mymoney_LIB_SRCS ${storage_a_SOURCES}) | ||
christiand: Good solution. Btw, it is possible to squeeze everything into one line `list(APPEND… | |||||
In fact I tried that, but always received an error from cmake, hence my solution to the problem. Using a copy of your statement (though I think I used the exact same syntax) works. I had to change the first DebugKMM into Debug though. I will land it then. tbaumgart: In fact I tried that, but always received an error from cmake, hence my solution to the problem. | |||||
48 | 46 | | |||
49 | set(mymoney_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/kmm_mymoney_export.h | 47 | set(mymoney_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/kmm_mymoney_export.h | ||
50 | mymoneyobject.h mymoneyaccount.h mymoneycategory.h mymoneyexception.h | 48 | mymoneyobject.h mymoneyaccount.h mymoneycategory.h mymoneyexception.h | ||
51 | mymoneyfile.h mymoneyfinancialcalculator.h mymoneyinstitution.h | 49 | mymoneyfile.h mymoneyfinancialcalculator.h mymoneyinstitution.h | ||
52 | mymoneyinvesttransaction.h mymoneykeyvaluecontainer.h mymoneymoney.h | 50 | mymoneyinvesttransaction.h mymoneykeyvaluecontainer.h mymoneymoney.h | ||
53 | mymoneypayee.h mymoneytag.h mymoneyprice.h mymoneyreport.h | 51 | mymoneypayee.h mymoneytag.h mymoneyprice.h mymoneyreport.h | ||
54 | mymoneyschedule.h mymoneysecurity.h mymoneysplit.h mymoneystatement.h | 52 | mymoneyschedule.h mymoneysecurity.h mymoneysplit.h mymoneystatement.h | ||
55 | mymoneytransactionfilter.h mymoneytransaction.h | 53 | mymoneytransactionfilter.h mymoneytransaction.h | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
Good solution. Btw, it is possible to squeeze everything into one line list(APPEND storage_a_SOURCES $<$<OR:$<CONFIG:DebugKMM>,$<CONFIG:DebugFull>,$<CONFIG:DebugKMM>>: ./storage/mymoneystoragedump.cpp>)