-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
cmake_minimum_required( VERSION 3.10) | ||
project(kalman_filter) | ||
project(example_kf) | ||
# Find the Eigen library | ||
find_package(Eigen3 REQUIRED) | ||
# # Find the manif library | ||
# find_package(manif REQUIRED) | ||
add_executable(${PROJECT_NAME} kalman_filter.cpp) | ||
add_executable(example_kf kalman_filter.cpp) | ||
# add_executable(${PROJECT_NAME} playground.cpp) | ||
|
||
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC "../include/RandomVariable/src/") | ||
target_link_libraries(example_kf | ||
RandomVariable::RandomVariable | ||
) | ||
|
||
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${EIGEN3_INCLUDE_DIRS}) | ||
|
||
# # Add manif include directories to the target | ||
# target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${manif_INCLUDE_DIRS}) | ||
|
||
|
||
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
message("CMAKE_BUILD_TYPE: Debug mode\n") | ||
# Add debug flag | ||
target_compile_definitions(kalman_filter PUBLIC DEBUG) | ||
target_compile_definitions(example_kf PUBLIC DEBUG) | ||
elseif(CMAKE_BUILD_TYPE STREQUAL "Release") | ||
message("CMAKE_BUILD_TYPE: Release mode") | ||
endif() | ||
|
||
# Set required C++ standard flag | ||
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17) | ||
set_property(TARGET example_kf PROPERTY CXX_STANDARD 17) |
Submodule RandomVariable
updated
from 1b7473 to d102f5