-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
42 lines (34 loc) · 1.06 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
cmake_minimum_required(VERSION 3.0.2)
project(kalman_filter)
# Find catkin and catkin package dependencies.
find_package(catkin REQUIRED)
# Find Eigen system dependency.
find_package(Eigen3 REQUIRED)
# Set up catkin package.
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}_kf ${PROJECT_NAME}_ukf ${PROJECT_NAME}_ukfa
DEPENDS EIGEN3)
# Set up include directories.
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS})
# Build KF library.
add_library(${PROJECT_NAME}_kf
src/kalman_filter/base.cpp
src/kalman_filter/kf.cpp)
# Build UKF library.
add_library(${PROJECT_NAME}_ukf
src/kalman_filter/base.cpp
src/kalman_filter/ukf.cpp)
# Build UKFA library.
add_library(${PROJECT_NAME}_ukfa
src/kalman_filter/base.cpp
src/kalman_filter/ukfa.cpp)
# Install libraries.
install(TARGETS ${PROJECT_NAME}_kf ${PROJECT_NAME}_ukf ${PROJECT_NAME}_ukfa
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.hpp")