1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
### the directory name
set(directory source/APPLICATIONS)
### list all filenames of the directory here
set(sources_list
INIUpdater.C
ToolHandler.C
TOPPBase.C
ParameterInformation.C
ConsoleUtils.C
)
### add path to the filenames
set(sources)
foreach(i ${sources_list})
list(APPEND sources ${directory}/${i})
endforeach(i)
if (MSVC)
## apparently TOPPBase.C has more than 2^16 sections in its obj file (C1128). we need to increase to 2^32
SET_SOURCE_FILES_PROPERTIES(${directory}/TOPPBase.C PROPERTIES COMPILE_FLAGS "/bigobj")
endif()
### pass source file list to the upper instance
set(OpenMS_sources ${OpenMS_sources} ${sources})
### source group definition
source_group("Source Files\\APPLICATIONS" FILES ${sources})
|