-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (52 loc) · 1.73 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
cmake_minimum_required(VERSION 2.8.3)
project(gtec_roskfpos)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_definitions(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
gtec_msgs
tf
)
## System dependencies are found with CMake's conventions
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost REQUIRED COMPONENTS system)
find_package(Armadillo REQUIRED)
include_directories(${ARMADILLO_INCLUDE_DIRS})
catkin_package(
)
###########
## Build ##
###########
include_directories(src/kfpos/algorithms)
include_directories(src/kfpos/config)
include_directories(src/kfpos/publishers)
include_directories(
${catkin_INCLUDE_DIRS}
)
set(SOURCE_FILES_KF_POS src/kfpos/publishers/node_pos.cpp
src/kfpos/algorithms/MLLocation.cpp
src/kfpos/algorithms/MLLocation.h
src/kfpos/algorithms/KalmanFilter.cpp
src/kfpos/algorithms/KalmanFilter.h
src/kfpos/publishers/Posgenerator.h
src/kfpos/publishers/Posgenerator.cpp
src/kfpos/algorithms/KalmanFilterTOA.cpp
src/kfpos/algorithms/KalmanFilterTOA.h
src/kfpos/algorithms/KalmanFilterTOAIMU.cpp
src/kfpos/algorithms/KalmanFilterTOAIMU.h
src/kfpos/algorithms/PositionEstimationAlgorithm.cpp
src/kfpos/algorithms/PositionEstimationAlgorithm.h
)
## Declare a cpp executable
add_executable(kfpos ${SOURCE_FILES_KF_POS})
add_dependencies(kfpos ${catkin_EXPORTED_TARGETS})
target_link_libraries(kfpos ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${ARMADILLO_LIBRARIES})