-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists.txt
44 lines (35 loc) · 1.24 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
cmake_minimum_required(VERSION 2.8.3)
project(ekf_localization)
find_package(PkgConfig)
pkg_check_modules(BFL REQUIRED orocos-bfl)
link_directories(${BFL_LIBRARY_DIRS})
find_package(PCL)
find_package(OpenCV REQUIRED)
find_package(catkin REQUIRED
roscpp
sensor_msgs
std_msgs
tf
tf_conversions
laser_geometry
pcl_ros)
catkin_package(
# INCLUDE_DIRS include
LIBRARIES pose_estimation_ekf
# CATKIN_DEPENDS cv_bridge geometry_msgs message_filters roscpp sensor_msgs std_msgs tf
# DEPENDS system_lib
# CATKIN_DEPENDS message_runtime
)
include_directories(${BFL_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS})
include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
# catkin_add_nosetests(test)
add_library(pose_estimation_ekf src/bayesian_filtering/nonlinearanalyticconditionalgaussianmobile.cpp)
target_link_libraries(pose_estimation_ekf ${BFL_LIBRARIES} )
add_executable(ekf_localization_node src/main.cpp src/kalman.cpp src/featuresextractor.cpp)
target_link_libraries(ekf_localization_node pose_estimation_ekf ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${Boost_LIBRARIES} ${BFL_LIBRARIES})