-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
19 lines (12 loc) · 920 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.1)
project(intel_tera_mavlink)
find_package(serial REQUIRED)
set(MAVLINK_DIALECT common)
add_subdirectory(serial)
add_executable(intel_tera_mavlink src/teraranger_one.cpp src/helper_lib.cpp src/mavlink_tcp.cpp src/main.cpp)
set_property(TARGET intel_tera_mavlink PROPERTY CXX_STANDARD 11)
set_property(TARGET intel_tera_mavlink PROPERTY COMPILE_FLAGS "-Wall -Wextra -Wshadow -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wformat-nonliteral -Wpointer-arith -Winit-self -Wmissing-noreturn -Wstrict-aliasing=2 -Wno-overlength-strings -Wno-missing-field-initializers -Wuninitialized")
target_include_directories(intel_tera_mavlink PUBLIC ${CMAKE_SOURCE_DIR}/modules/mavlink_c/${MAVLINK_DIALECT})
target_link_libraries(intel_tera_mavlink serial)
install(TARGETS intel_tera_mavlink DESTINATION bin)
configure_file(aero-teraranger.service.in aero-teraranger.service)