forked from Rookfighter/bayes-filter-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (30 loc) · 841 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
29
30
31
32
33
34
35
36
37
38
39
40
# CMakeLists.txt
#
# Author: Fabian Meyer
# Created On: 23 May 2018
cmake_minimum_required(VERSION 3.5)
project(bfcpp)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
endif(CMAKE_COMPILER_IS_GNUCXX)
set(BFCPP_LIBRARY bfcpp)
add_subdirectory(dep)
include_directories(
include
${EIGEN3_INCLUDE_DIR}
${CATCH2_INCLUDE_DIR}
)
file(GLOB SRC src/bayes_filter/*.cpp)
add_library(${BFCPP_LIBRARY} ${SRC})
install(TARGETS ${BFCPP_LIBRARY}
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install(DIRECTORY src/bayes_filter
DESTINATION include
FILES_MATCHING PATTERN "*.h")
# Compile tests
file(GLOB TEST_SRC test/*.cpp)
add_executable(run_tests ${TEST_SRC})
target_link_libraries(run_tests ${BFCPP_LIBRARY})