-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (39 loc) · 1.05 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
cmake_minimum_required(VERSION 2.8.3)
project(kalman_2d)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
)
find_package(cmake_modules REQUIRED)
find_package(Boost REQUIRED system filesystem date_time thread)
# find_package(Eigen3 REQUIRED)
catkin_package(
INCLUDE_DIRS include
LIBRARIES kalman_2d
CATKIN_DEPENDS
roscpp
std_msgs
# DEPENDS
# Eigen3
)
find_package(Eigen REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})
include_directories(include)
include_directories(SYSTEM ${Boost_INCLUDE_DIR} ${EIGEN_INCLUDE_DIRS})
include_directories(${catkin_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
add_library(${PROJECT_NAME}
src/kalman.cpp
)
add_executable(kalman src/kalman.cpp)
add_executable(measurement_publisher src/measurement_publisher.cpp)
target_link_libraries(kalman
${PROJECT_NAME}
)
target_link_libraries(measurement_publisher
${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
)
add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})