forked from intel-aero/aero-optical-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
21 lines (15 loc) · 1.03 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 3.1)
project(aero-optical-flow)
find_package(OpenCV REQUIRED)
find_package(Threads REQUIRED)
set(MAVLINK_DIALECT common)
add_subdirectory(modules/OpticalFlow)
add_executable(aero-optical-flow src/mainloop.cpp src/camera.cpp src/mavlink_tcp.cpp src/main.cpp)
set_property(TARGET aero-optical-flow PROPERTY CXX_STANDARD 11)
set_property(TARGET aero-optical-flow 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(aero-optical-flow PUBLIC ${CMAKE_SOURCE_DIR}/modules/mavlink_c/${MAVLINK_DIALECT})
target_link_libraries(aero-optical-flow ${OpenCV_LIBS})
target_link_libraries(aero-optical-flow OpticalFlow)
target_link_libraries(aero-optical-flow pthread)
install(TARGETS aero-optical-flow DESTINATION bin)
configure_file(aero-optical-flow.service.in aero-optical-flow.service)