-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Boost-friendly subproject case to CMakeLists
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,53 @@ | ||
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) | ||
|
||
# Generated by `boostdep --cmake compute` | ||
# 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_compute VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) | ||
|
||
add_library(boost_compute INTERFACE) | ||
add_library(Boost::compute ALIAS boost_compute) | ||
|
||
target_include_directories(boost_compute INTERFACE include) | ||
|
||
target_link_libraries(boost_compute | ||
INTERFACE | ||
Boost::algorithm | ||
Boost::array | ||
Boost::assert | ||
Boost::atomic | ||
Boost::chrono | ||
Boost::config | ||
Boost::core | ||
Boost::filesystem | ||
Boost::function | ||
Boost::function_types | ||
Boost::fusion | ||
Boost::iterator | ||
Boost::lexical_cast | ||
Boost::mpl | ||
Boost::optional | ||
Boost::preprocessor | ||
Boost::property_tree | ||
Boost::proto | ||
Boost::range | ||
Boost::smart_ptr | ||
Boost::static_assert | ||
Boost::thread | ||
Boost::throw_exception | ||
Boost::tuple | ||
Boost::type_traits | ||
Boost::typeof | ||
Boost::utility | ||
Boost::uuid | ||
) | ||
|
||
else() | ||
|
||
# --------------------------------------------------------------------------- | ||
# Copyright (c) 2013 Kyle Lutz <[email protected]> | ||
# | ||
|
@@ -127,3 +177,5 @@ install( | |
|
||
# install header files | ||
install(DIRECTORY include/boost DESTINATION include/compute) | ||
|
||
endif() |