-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
40 lines (33 loc) · 1.2 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
# Project setup
project(MSAF)
cmake_minimum_required(VERSION 3.10)
# Include GeographicLib subdirectory and its headers
add_subdirectory(${PROJECT_SOURCE_DIR}/GeographicLib)
include_directories(${PROJECT_SOURCE_DIR}/GeographicLib/include/)
# Include Eigen3 headers
include_directories(/usr/include/eigen3)
# Setup for YAML-CPP package
find_package(PkgConfig REQUIRED)
pkg_check_modules(YAML_CPP REQUIRED yaml-cpp)
include_directories(${YAML_CPP_INCLUDEDIR})
# Boost library requirements
find_package(Boost REQUIRED COMPONENTS system filesystem)
# Google glog library for logging
find_package(glog REQUIRED)
# Executable definition and source files
add_executable(MSAF
src/app/main.cpp
src/motion_data_generator/src/load_data.cpp
src/motion_data_generator/src/valid_data.cpp
src/error_state_kalman_filter/init_data.cpp
src/error_state_kalman_filter/error_state_kalman_filter.cpp
src/state_dependency_analyzer/state_dependency_analyzer.cpp
src/injector/injector.cpp
src/app/utilityFunctions.cpp)
# Link libraries to the executable
target_link_libraries(MSAF
libGeographiccc
${YAML_CPP_LIBRARIES}
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
glog::glog)