forked from projectchrono/fmu_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
25 lines (18 loc) · 889 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
cmake_minimum_required(VERSION 3.21)
cmake_policy(SET CMP0091 NEW) # MSVC runtime library flags are selected by an abstraction i.e. CMAKE_MSVC_RUNTIME_LIBRARY
project(fmu_tools)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
mark_as_advanced(FORCE CMAKE_INSTALL_PREFIX)
# -------------------------------------------------
# Set FMU_TOOLS_DIR to point to the location of this script
# (in this case, this is the top-level fmu_tools directory)
set(FMU_TOOLS_DIR ${CMAKE_SOURCE_DIR})
include_directories(${FMU_TOOLS_DIR})
# -------------------------------------------------
# Add the various demo subdirectories
message(STATUS "\nDemos for FMI 2.0")
add_subdirectory(fmi2/demos/cosimulation)
add_subdirectory(fmi2/demos/model_exchange)
message(STATUS "\nDemos for FMI 3.0")
add_subdirectory(fmi3/demos/cosimulation)
add_subdirectory(fmi3/demos/model_exchange)