Skip to content

Commit 8934b49

Browse files
committed
Add CMakeLists.txt. Closes #142.
1 parent 3a4fe24 commit 8934b49

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Diff for: CMakeLists.txt

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Generated by `boostdep --cmake numeric/ublas`
2+
# Copyright 2020, 2021 Peter Dimov
3+
# Distributed under the Boost Software License, Version 1.0.
4+
# https://www.boost.org/LICENSE_1_0.txt
5+
6+
cmake_minimum_required(VERSION 3.8...3.20)
7+
8+
project(boost_numeric_ublas VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
9+
10+
add_library(boost_numeric_ublas INTERFACE)
11+
add_library(Boost::numeric_ublas ALIAS boost_numeric_ublas)
12+
13+
target_include_directories(boost_numeric_ublas INTERFACE include)
14+
15+
target_link_libraries(boost_numeric_ublas
16+
INTERFACE
17+
Boost::compute
18+
Boost::concept_check
19+
Boost::config
20+
Boost::core
21+
Boost::iterator
22+
Boost::mpl
23+
Boost::numeric_interval
24+
Boost::range
25+
Boost::serialization
26+
Boost::smart_ptr
27+
Boost::static_assert
28+
Boost::type_traits
29+
Boost::typeof
30+
)
31+
32+
target_compile_features(boost_numeric_ublas INTERFACE cxx_std_11)
33+
34+
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
35+
36+
add_subdirectory(test)
37+
38+
endif()

0 commit comments

Comments
 (0)