forked from boostorg/function
Update test/cmake_subdir_test
This commit is contained in:
@ -2,39 +2,39 @@
|
|||||||
# Distributed under the Boost Software License, Version 1.0.
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5...3.20)
|
||||||
|
|
||||||
project(cmake_subdir_test LANGUAGES CXX)
|
project(cmake_subdir_test LANGUAGES CXX)
|
||||||
|
|
||||||
add_subdirectory(../.. boostorg/function)
|
add_subdirectory(../.. boostorg/function)
|
||||||
|
|
||||||
# boost_add_subdir
|
set(deps
|
||||||
|
|
||||||
function(boost_add_subdir name)
|
# Primary dependencies
|
||||||
|
|
||||||
add_subdirectory(../../../${name} boostorg/${name})
|
assert
|
||||||
|
bind
|
||||||
|
config
|
||||||
|
core
|
||||||
|
preprocessor
|
||||||
|
throw_exception
|
||||||
|
type_index
|
||||||
|
type_traits
|
||||||
|
typeof
|
||||||
|
|
||||||
endfunction()
|
# Secondary dependencies
|
||||||
|
|
||||||
# primary dependencies
|
static_assert
|
||||||
|
container_hash
|
||||||
|
describe
|
||||||
|
mp11
|
||||||
|
)
|
||||||
|
|
||||||
boost_add_subdir(assert)
|
foreach(dep IN LISTS deps)
|
||||||
boost_add_subdir(bind)
|
|
||||||
boost_add_subdir(config)
|
|
||||||
boost_add_subdir(core)
|
|
||||||
boost_add_subdir(integer)
|
|
||||||
boost_add_subdir(preprocessor)
|
|
||||||
boost_add_subdir(throw_exception)
|
|
||||||
boost_add_subdir(type_index)
|
|
||||||
boost_add_subdir(type_traits)
|
|
||||||
boost_add_subdir(typeof)
|
|
||||||
|
|
||||||
# secondary dependencies
|
add_subdirectory(../../../${dep} boostorg/${dep})
|
||||||
|
|
||||||
boost_add_subdir(static_assert)
|
endforeach()
|
||||||
boost_add_subdir(container_hash)
|
|
||||||
boost_add_subdir(describe)
|
|
||||||
boost_add_subdir(mp11)
|
|
||||||
|
|
||||||
# --target check
|
# --target check
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user