-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
37 lines (26 loc) · 987 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
36
cmake_minimum_required(VERSION 3.10)
project(semantic_dsp_map)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
set(CMAKE_BUILD_TYPE Release)
add_definitions(-std=c++17 -O3 -ftree-vectorize -march=native)
find_package(catkin REQUIRED COMPONENTS
roscpp
cv_bridge
image_transport
mask_kpts_msgs
)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(VTK REQUIRED)
find_package(yaml-cpp REQUIRED)
add_definitions(${PCL_DEFINITIONS})
catkin_package()
include_directories(${PCL_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${Eigen_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${YAML_CPP_INCLUDE_DIR})
add_executable(mapping src/mapping.cpp)
target_link_libraries(mapping ${PCL_LIBRARIES} ${catkin_LIBRARIES} ${OpenCV_LIBS} ${YAML_CPP_LIBRARIES})