-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
68 lines (49 loc) · 1.61 KB
/
CMakeLists.txt
File metadata and controls
68 lines (49 loc) · 1.61 KB
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
# Copyright (C) 2024 David Skuddis - All Rights Reserved
# You may use, distribute and modify this code under the
# terms of the MIT license.
#
# You should have received a copy of the MIT license with
# this file. If not, please write to: davidskuddis@web.de, or visit: https://opensource.org/license/mit/
cmake_minimum_required(VERSION 3.0.2)
project(dmsa_slam_ros)
set(CMAKE_BUILD_TYPE release)
set(CMAKE_CXX_FLAGS_RELEASE "-O1")
add_compile_options(-std=c++17)
find_package(catkin REQUIRED COMPONENTS
rosbag
sensor_msgs
roscpp
rospy
std_msgs
geometry_msgs
tf
pcl_conversions)
find_package(Boost 1.40.0 COMPONENTS filesystem system iostreams REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
find_package(PCL 1.3 REQUIRED COMPONENTS)
find_package(OpenMP REQUIRED)
if(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}")
message("OPENMP Found")
else()
message("OPENMP NOT Found")
endif()
catkin_package(
CATKIN_DEPENDS roscpp rospy std_msgs tf pcl_conversions sensor_msgs geometry_msgs rosbag
)
include_directories(
include
Thirdparty
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(dmsa_slam_ros
src/main.cpp
src/dmsa_slam_ros.cpp
)
target_link_libraries(dmsa_slam_ros ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${Boost_LIBRARIES})