-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
34 lines (27 loc) · 916 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
cmake_minimum_required(VERSION 3.15)
project(SensorsAndSenders)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
#====
#Project Options
#====
option(BUILD_GPS "Build GPS FMU" ON)
option(BUILD_GYRO "Build Gyro FMU" ON)
option(BUILD_VRU "Build Vru FMU" ON)
option(BUILD_WIND_SENSOR "Build Wind Sensor FMU" ON)
option(BUILD_NMEA_SENDER "Build nmea sender" ON)
if(${BUILD_NMEA_SENDER})
find_package(Boost REQUIRED COMPONENTS system)
endif()
add_library(project_warnings INTERFACE)
include(cmake/CompilerWarnings.cmake)
include_directories(thirdparty)
set_project_warnings(project_warnings)
if(NOT WIN32)
set(CMAKE_BUILD_RPATH_USE_ORIGIN TRUE)
endif()
add_subdirectory(src)