-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
51 lines (37 loc) · 1.71 KB
/
CMakeLists.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# CMakeLists.txt file for OpenHAMSolverBundle library and applications
# Author: Andreas Nicolai (andreas.nicolai -at- gmx.net)
# Require a fairly recent cmake version
cmake_minimum_required( VERSION 2.8...3.13 )
# The project name
project( OpenHAMSolverBundle )
# -------------------------------------------------------------
# Initial commands
# -------------------------------------------------------------
# Uncomment this to enable detailed make output
#set( CMAKE_VERBOSE_MAKEFILE ON )
# Hide some more cache variables to keep things tidy
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)
# Set default build type
if (NOT CMAKE_BUILD_TYPE)
set( CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif (NOT CMAKE_BUILD_TYPE)
# on Unix we want really detailed warnings
if (UNIX)
ADD_DEFINITIONS( -Wall -fPIC)
endif (UNIX)
# add VC compiler-specific flags (NONMINMAX define and disable "unsafe" warnings)
if (MSVC)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D\"NOMINMAX\" /wd4996 /GS-" )
endif (MSVC)
# -------------------------------------------------------------
# Subdirectories and Subprojects
# -------------------------------------------------------------
add_subdirectory( externals/CCM/projects/cmake_local CCM )
add_subdirectory( externals/IBK/projects/cmake_local IBK )
add_subdirectory( externals/DataIO/projects/cmake_local DataIO)
add_subdirectory( externals/TiCPP/projects/cmake_local TiCPP)
add_subdirectory( externals/DelphinLight/projects/cmake_local DelphinLight)
# add subdirectories for all builds
add_subdirectory( OpenHAMSolver/projects/cmake OpenHAMSolver )