Skip to content

Commit 36350b7

Browse files
committed
Add a Boost-friendly subproject case to CMakeLists
1 parent 36c8913 commit 36350b7

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

CMakeLists.txt

+52
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
2+
3+
# Generated by `boostdep --cmake compute`
4+
# Copyright 2020, 2021 Peter Dimov
5+
# Distributed under the Boost Software License, Version 1.0.
6+
# https://www.boost.org/LICENSE_1_0.txt
7+
8+
cmake_minimum_required(VERSION 3.5...3.20)
9+
10+
project(boost_compute VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
11+
12+
add_library(boost_compute INTERFACE)
13+
add_library(Boost::compute ALIAS boost_compute)
14+
15+
target_include_directories(boost_compute INTERFACE include)
16+
17+
target_link_libraries(boost_compute
18+
INTERFACE
19+
Boost::algorithm
20+
Boost::array
21+
Boost::assert
22+
Boost::atomic
23+
Boost::chrono
24+
Boost::config
25+
Boost::core
26+
Boost::filesystem
27+
Boost::function
28+
Boost::function_types
29+
Boost::fusion
30+
Boost::iterator
31+
Boost::lexical_cast
32+
Boost::mpl
33+
Boost::optional
34+
Boost::preprocessor
35+
Boost::property_tree
36+
Boost::proto
37+
Boost::range
38+
Boost::smart_ptr
39+
Boost::static_assert
40+
Boost::thread
41+
Boost::throw_exception
42+
Boost::tuple
43+
Boost::type_traits
44+
Boost::typeof
45+
Boost::utility
46+
Boost::uuid
47+
)
48+
49+
else()
50+
151
# ---------------------------------------------------------------------------
252
# Copyright (c) 2013 Kyle Lutz <[email protected]>
353
#
@@ -127,3 +177,5 @@ install(
127177

128178
# install header files
129179
install(DIRECTORY include/boost DESTINATION include/compute)
180+
181+
endif()

0 commit comments

Comments
 (0)