-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (23 loc) · 826 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
cmake_minimum_required(VERSION 3.10)
set(THIS kalman_filters_cpp)
project(${THIS})
set(CMAKE_CXX_STANDARD 14)
include_directories(src)
include_directories(Eigen)
set(SOURCES src/main.cpp
src/sample.cpp
src/kf/EKF.cpp
src/kf/UKF.cpp
src/model/nonlinear.cpp
src/sigma_points.cpp)
add_executable(${THIS} ${SOURCES})
# The following is required for matplotlib-cpp
include_directories(matplotlib-cpp)
find_package(PythonLibs 2.7)
if(NOT PythonLibs_FOUND)
message(WARNING "PythonLibs 2.7 not found. Make sure you have installed python 2.7.
If that doesn't solve the problem, consult
https://github.com/lava/matplotlib-cpp")
endif()
target_include_directories(${THIS} PRIVATE ${PYTHON_INCLUDE_DIRS})
target_link_libraries(${THIS} ${PYTHON_LIBRARIES})