Skip to content

Commit

Permalink
Add a Boost-friendly subproject case to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Sep 23, 2021
1 parent 36c8913 commit 36350b7
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions CMakeLists.txt
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 <kyle.r.lutz@gmail.com>
#
Expand Down Expand Up @@ -127,3 +177,5 @@ install(

# install header files
install(DIRECTORY include/boost DESTINATION include/compute)

endif()

0 comments on commit 36350b7

Please sign in to comment.