-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (24 loc) · 1016 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
35
cmake_minimum_required(VERSION 3.10)
project(hhas)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# set the build type to release
set(CMAKE_BUILD_TYPE Release)
# Add the directory where AStar and GridAStar headers are storedoput
# todo, figure out nanoflann include
include_directories(include /home/jack/hhas/nanoflann/include)
# find OpenCV
find_package(OpenCV REQUIRED)
#find nanoFLANN
find_package(Threads REQUIRED)
find_package(nanoflann REQUIRED)
#find omp
find_package(OpenMP REQUIRED)
# Define the executable to be built (named grid_a_star) and the source file for it
add_executable(grid_a_star src/grid_a_star.cpp)
add_executable(se2_grid_a_star src/se2_grid_a_star.cpp)
add_executable(se2_grid_a_star_fp src/se2_grid_a_star_fp.cpp)
# link OpenCV to se2_grid_a_star target
target_link_libraries(se2_grid_a_star ${OpenCV_LIBS})
# link opencv and nanoflann to se2_grid_a_star_fp target, also link OpenMP
target_link_libraries(se2_grid_a_star_fp ${OpenCV_LIBS} OpenMP::OpenMP_CXX)