-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
44 lines (30 loc) · 1.08 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
41
42
43
44
# Copyright 2018 by Martin Moene
#
# https://github.com/martinmoene/kalman-estimator
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
cmake_minimum_required( VERSION 3.5 )
# At default, enable building and performing of tests and building of examples:
option( KE_OPT_BUILD_TEST "Build and perform kalman-estimator tests" ON )
option( KE_OPT_BUILD_EXAMPLE "Build kalman-estimator examples" ON )
option( KE_OPT_BUILD_TIME "Build kalman-estimator timing" ON )
project( kalman_estimator LANGUAGES CXX )
set( package_name "kalman-estimator" )
set( include_source_dir "${PROJECT_SOURCE_DIR}/include" )
# Interface library:
add_library(
${package_name} INTERFACE )
target_include_directories(
${package_name} INTERFACE "$<BUILD_INTERFACE:${include_source_dir}>" )
enable_testing()
if ( KE_OPT_BUILD_TEST )
add_subdirectory( test )
endif()
if ( KE_OPT_BUILD_EXAMPLE )
add_subdirectory( example )
endif()
if ( KE_OPT_BUILD_TIME )
add_subdirectory( time )
endif()
# end of file