forked from tenghooi/occupancy_mapping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
77 lines (64 loc) · 1.93 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
73
74
75
76
cmake_minimum_required(VERSION 2.8.3)
# Create Project - set the project name and version
project(occupancy_mapping)
set(CMAKE_CXX_FLAGS "-std=c++17 ${CMAKE_CXX_FLAGS} -O3 -Wall -pthread") # -Wextra -Werror
set(CMAKE_BUILD_TYPE "RELEASE")
# Find Packages
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
geometry_msgs
sensor_msgs
nav_msgs
visualization_msgs
tf
cv_bridge
pcl_ros
pcl_conversions
)
find_package(PCL 1.7 REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
set(Eigen3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
catkin_package(
INCLUDE_DIRS include
)
# Include header files
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(
include
SYSTEM
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
# Add executable
add_executable(occupancy_mapping
include/parameters.h
src/parameters.cpp
include/raycasting.h
src/raycasting.cpp
include/occupancy_map.h
src/occupancy_map.cpp
include/mapping.h
src/main.cpp
)
target_link_libraries(occupancy_mapping
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_LIBS}
Eigen3::Eigen
)
# target_link_libraries(occupancy_mapping ${PCL_LIBRARIES} Eigen3::Eigen)
add_executable(object_filter
src/object_filter.cpp
include/object_filter.h
)
target_link_libraries(object_filter
${catkin_LIBRARIES}
${PCL_LIBRARIES}
Eigen3::Eigen
)