]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/cmake_subdir_test/CMakeLists.txt
6be6808d938e7578c80bbdcf5510fee40a1f42ab
[ceph.git] / ceph / src / boost / libs / system / test / cmake_subdir_test / CMakeLists.txt
1 # Copyright 2018-2021 Peter Dimov
2 # Distributed under the Boost Software License, Version 1.0.
3 # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
4
5 cmake_minimum_required(VERSION 3.5...3.20)
6
7 project(cmake_subdir_test LANGUAGES CXX)
8
9 add_subdirectory(../.. boostorg/system)
10 add_subdirectory(../../../assert boostorg/assert)
11 add_subdirectory(../../../config boostorg/config)
12 add_subdirectory(../../../core boostorg/core)
13 add_subdirectory(../../../mp11 boostorg/mp11)
14 add_subdirectory(../../../predef boostorg/predef)
15 add_subdirectory(../../../static_assert boostorg/static_assert)
16 add_subdirectory(../../../throw_exception boostorg/throw_exception)
17 add_subdirectory(../../../variant2 boostorg/variant2)
18 add_subdirectory(../../../winapi boostorg/winapi)
19
20 add_executable(quick ../quick.cpp)
21 target_link_libraries(quick Boost::system Boost::core)
22
23 enable_testing()
24 add_test(quick quick)
25
26 add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure --no-tests=error -C $<CONFIG>)