forked from OpenSourceRisk/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (36 loc) · 1.44 KB
/
CMakeLists.txt
File metadata and controls
45 lines (36 loc) · 1.44 KB
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.15)
cmake_policy(SET CMP0091 NEW)
project(ORE CXX)
option(ORE_BUILD_DOC "Build documentation" ON)
option(ORE_BUILD_EXAMPLES "Build examples" ON)
option(ORE_BUILD_TESTS "Build test suite" ON)
option(ORE_BUILD_APP "Build app" ON)
option(ORE_BUILD_SWIG "Build ORE Python" ON)
option(MSVC_LINK_DYNAMIC_RUNTIME "Link against dynamic runtime" ON)
option(MSVC_PARALLELBUILD "Use flag /MP" ON)
option(QL_USE_PCH "Use precompiled headers" OFF)
option(ORE_PYTHON_INTEGRATION "Build ORE with Python Integration" OFF)
option(ORE_USE_ZLIB "Use compression for boost::iostreams" OFF)
option(ORE_MULTITHREADING_CPU_AFFINITY "Set cpu affinitity in multithreaded calculations" OFF)
option(ORE_ENABLE_PARALLEL_UNIT_TEST_RUNNER "Enable the parallel unit test runner" OFF)
include(CTest)
# Path for local cmake modules
if(NOT "${CMAKE_CURRENT_LIST_DIR}/cmake" IN_LIST CMAKE_MODULE_PATH)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
endif()
include(commonSettings)
set(USE_GLOBAL_ORE_BUILD ON)
add_subdirectory("QuantLib")
add_subdirectory("QuantExt")
add_subdirectory("OREData")
add_subdirectory("OREAnalytics")
if (ORE_BUILD_APP)
add_subdirectory("App")
endif()
if (ORE_BUILD_SWIG)
add_subdirectory("ORE-SWIG")
endif()
# add examples testsuite
if (ORE_BUILD_EXAMPLES AND ORE_BUILD_TESTS)
add_test(NAME examples WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Examples COMMAND nosetests run_examples_testsuite.py)
endif()