-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 1.1 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
project(kitti-bonxai-occupancy-voxelmap-demo)
cmake_minimum_required(VERSION 3.1)
# ---------------------------------------------------------------------------
# Set the output directory of each example to its corresponding subdirectory
# in the binary tree:
# ---------------------------------------------------------------------------
set(EXECUTABLE_OUTPUT_PATH ".")
# The list of "libs" which can be included can be found in:
# https://www.mrpt.org/Libraries
# Add the top-level dependencies only.
# --------------------------------------------------------------------------
find_package(mrpt-maps 2.11 REQUIRED)
find_package(mrpt-gui REQUIRED)
find_package(mola_input_kitti_dataset REQUIRED)
find_package(mola_yaml REQUIRED)
# Define the executable target:
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME}
mrpt::maps
mrpt::gui
mola_input_kitti_dataset
mola_yaml
)
install(TARGETS ${PROJECT_NAME})
# Set optimized building:
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR CMAKE_COMPILER_IS_GNUCXX)
target_compile_options(${PROJECT_NAME} PRIVATE
-Wall -pedantic
-O3
)
endif()