-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeLists.txt
47 lines (31 loc) · 955 Bytes
/
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
cmake_minimum_required(VERSION 3.2)
project(OrbitDynamics)
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/orbitdyn)
link_directories(${PROJECT_SOURCE_DIR}/lib)
set(BUILD_SOFA "build sofa library" TRUE)
set(BUILD_TEST "build test" TRUE)
#find_package(Boost 1.46.1)
# check if boost was found
#if(Boost_FOUND)
# message ("boost found")
#else()
# message (FATAL_ERROR "Cannot find Boost")
#endif()
if(APPLE)
set(ARMA_OS macos)
set(ARMA_USE_LAPACK true)
set(ARMA_USE_BLAS true)
set(ARMA_LIBS ${ARMA_LIBS} "-framework Accelerate") # or "-framework accelerate" ?
message(STATUS "MacOS X detected. Added '-framework Accelerate' to compiler flags")
endif(APPLE)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_subdirectory(orbitdyn)
add_subdirectory(maneuver)
add_subdirectory(LowThrust)
#add_subdirectory(dyn)
if(BUILD_SOFA)
add_subdirectory(sofa)
endif(BUILD_SOFA)
if(BUILD_TEST)
add_subdirectory(test)
endif(BUILD_TEST)