-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (21 loc) · 797 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (21 loc) · 797 Bytes
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.0)
project(KFilter VERSION 0.1.0)
include(CTest)
enable_testing()
find_package (Eigen3 REQUIRED NO_MODULE)
if (TARGET Eigen3::Eigen)
add_compile_definitions(USE_NEW_EIGEN_HEADERS)
add_library(KFilter src/KFilter.cpp)
target_include_directories(KFilter PUBLIC include)
target_link_libraries(KFilter Eigen3::Eigen)
add_executable(test_filter test_filter.cpp)
target_link_libraries(test_filter KFilter)
else (TARGET Eigen3::Eigen)
add_library(KFilter src/KFilter.cpp)
target_include_directories(KFilter PUBLIC include)
add_executable(test_filter test_filter.cpp)
target_link_libraries(test_filter KFilter)
endif (TARGET Eigen3::Eigen)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)