generated from openMSL/sl-1-0-sensor-model-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
20 lines (14 loc) · 885 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cmake_policy(SET CMP0048 NEW)
cmake_minimum_required(VERSION 3.12)
project(sl-1-5-reflection-based-fmcw-lidar-detection-model)
add_subdirectory(lib/open-simulation-interface)
get_directory_property(OSI_VERSION_MAJOR DIRECTORY lib/open-simulation-interface DEFINITION VERSION_MAJOR)
get_directory_property(OSI_VERSION_MINOR DIRECTORY lib/open-simulation-interface DEFINITION VERSION_MINOR)
get_directory_property(OSI_VERSION_PATCH DIRECTORY lib/open-simulation-interface DEFINITION VERSION_PATCH)
set(OSIVERSION "${OSI_VERSION_MAJOR}.${OSI_VERSION_MINOR}.${OSI_VERSION_PATCH}")
set(OSMPVERSION "1.4.0" CACHE STRING "OSMP Version String")
set(MODELVERSION "0.5.0" CACHE STRING "Model Version String")
include_directories(lib/fmi2/headers)
set(FMU_INSTALL_DIR "${CMAKE_BINARY_DIR}" CACHE PATH "Target directory for generated FMU")
add_subdirectory(src/)
add_subdirectory(test/unit/)