-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (34 loc) · 1.06 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
# CMakeLists.txt
cmake_minimum_required(VERSION 3.15)
project(compVisionModule VERSION 0.1.0
DESCRIPTION "Computer Vision Moduel for ARUCO"
LANGUAGES C CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-address-of-packed-member")
IF(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release"
CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
FORCE)
ENDIF()
option(BUILD_GROUND "Build Ground Component" OFF)
if(BUILD_GROUND)
message(INFO "Building Ground Component.")
endif()
option(BUILD_REALSENSE "Build Realsense" OFF)
if(BUILD_REALSENSE)
message(INFO "Building realsense.")
endif()
# set cmake directory
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# third party / external libraries
add_subdirectory(third_party)
# internal libraries
add_subdirectory(libs)
if(BUILD_REALSENSE)
add_subdirectory(uav_sensor_deploy)
endif()
add_subdirectory(aruco_test_data_collection)
add_subdirectory(simulated_target_system)
if(BUILD_GROUND)
add_subdirectory(ground_component)
endif()