-
Notifications
You must be signed in to change notification settings - Fork 54
/
CMakeLists.txt
74 lines (61 loc) · 1.67 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Generated by `boostdep --cmake numeric/odeint`
# Copyright 2020, 2021 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
cmake_minimum_required(VERSION 3.5...3.20)
project(boost_numeric_odeint VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
add_library(boost_numeric_odeint INTERFACE)
add_library(Boost::numeric_odeint ALIAS boost_numeric_odeint)
target_include_directories(boost_numeric_odeint INTERFACE include)
if(BOOST_NUMERIC_ODEINT_NO_ADAPTORS)
target_link_libraries(boost_numeric_odeint
INTERFACE
Boost::assert
Boost::config
Boost::core
Boost::fusion
Boost::iterator
Boost::math
Boost::mpl
Boost::multi_array
Boost::numeric_ublas
Boost::preprocessor
Boost::range
Boost::static_assert
Boost::throw_exception
Boost::type_traits
Boost::units
Boost::utility
)
else()
target_link_libraries(boost_numeric_odeint
INTERFACE
Boost::assert
Boost::compute
Boost::config
Boost::core
Boost::fusion
Boost::iterator
Boost::math
Boost::mpl
Boost::multi_array
Boost::numeric_ublas
Boost::preprocessor
Boost::range
Boost::static_assert
Boost::throw_exception
Boost::type_traits
Boost::units
Boost::utility
)
# From CMake 3.30 linking against MPI when it does not exist gives errors
if(BOOST_ENABLE_MPI)
target_link_libraries(boost_numeric_odeint
INTERFACE
Boost::mpi
)
endif()
endif()
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)
endif()