-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
31 lines (23 loc) · 942 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
cmake_minimum_required(VERSION 3.0.2)
project(emcl2)
set(CMAKE_CXX_FLAGS "-std=c++17 -O3 ${CMAKE_CXX_FLAGS}")
find_package(catkin REQUIRED COMPONENTS
roscpp
geometry_msgs
tf2
tf2_ros
)
catkin_package(
)
include_directories(include ${catkin_INCLUDE_DIRS} )
add_library(Mcl_emcl2 src/Mcl.cpp)
#add_library(ExpResetMcl_emcl2 src/ExpResetMcl.cpp)
add_library(ExpResetMcl2_emcl2 src/ExpResetMcl2.cpp)
add_library(Particle_emcl2 src/Particle.cpp)
add_library(OdomModel_emcl2 src/OdomModel.cpp)
add_library(Pose_emcl2 src/Pose.cpp)
add_library(Scan_emcl2 src/Scan.cpp)
add_library(LikelihoodFieldMap_emcl2 src/LikelihoodFieldMap.cpp)
add_executable(emcl2_node src/emcl2_node.cpp)
add_dependencies(emcl2_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(emcl2_node Mcl_emcl2 ExpResetMcl2_emcl2 Particle_emcl2 Pose_emcl2 Scan_emcl2 OdomModel_emcl2 LikelihoodFieldMap_emcl2 ${catkin_LIBRARIES})