forked from HKUST-Aerial-Robotics/FIESTA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·73 lines (63 loc) · 1.67 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 2.8.3)
project(fiesta)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
nav_msgs
visualization_msgs
tf
cv_bridge
)
find_package(Eigen3 REQUIRED)
find_package(PCL 1.7 REQUIRED)
find_package(OpenCV REQUIRED)
set(Eigen3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
catkin_package(
INCLUDE_DIRS include
)
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(
include
SYSTEM
${catkin_INCLUDE_DIRS}
${Eigen3_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
link_directories(${PCL_LIBRARY_DIRS})
set(CMAKE_CXX_FLAGS "-std=c++17 ${CMAKE_CXX_FLAGS} -O3 -Wall -pthread") # -Wextra -Werror
set(CMAKE_BUILD_TYPE "RELEASE")
#add_executable(test_esdf_map
# include/ESDFMap.h
# src/ESDFMap.cpp
# include/timing.h
# src/timing.cc
# test/test_ESDF_Map.cpp
# )
#target_link_libraries(test_esdf_map
# ${catkin_LIBRARIES}
# )
#FIND_PACKAGE( OpenMP REQUIRED)
#if(OPENMP_FOUND)
#message("OPENMP FOUND")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
#set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
#endif()
add_executable(test_fiesta
include/parameters.h
src/parameters.cpp
include/timing.h
src/timing.cc
include/raycast.h
src/raycast.cpp
include/ESDFMap.h
src/ESDFMap.cpp
include/Fiesta.h
test/test_fiesta.cpp
)
target_link_libraries(test_fiesta
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_LIBS}
)