File: sources.cmake

package info (click to toggle)
openms 1.11.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 436,688 kB
  • ctags: 150,907
  • sloc: cpp: 387,126; xml: 71,547; python: 7,764; ansic: 2,626; php: 2,499; sql: 737; ruby: 342; sh: 325; makefile: 128
file content (29 lines) | stat: -rw-r--r-- 727 bytes parent folder | download
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})