]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/atomic/test/test_cmake/CMakeLists.txt
ec343325ec76355b2a9e3f176f6e221d000b4838
[ceph.git] / ceph / src / boost / libs / atomic / test / test_cmake / CMakeLists.txt
1 # Copyright 2018 Mike Dev
2 # Copyright 2020 Andrey Semashev
3 #
4 # Distributed under the Boost Software License, Version 1.0.
5 # See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
6 #
7 # NOTE: This does NOT run the unit tests for Boost.Atomic.
8 # It only tests if the CMakeLists.txt file in its root works as expected
9
10 cmake_minimum_required(VERSION 3.5)
11
12 project(BoostAtomicCMakeSelfTest)
13
14 # Use experimental superproject to pull library dependencies recursively
15 set(BOOST_ENABLE_CMAKE 1)
16 add_subdirectory(../../../.. "${CMAKE_CURRENT_BINARY_DIR}/boost_superproject")
17
18 add_definitions(-DBOOST_ALL_NO_LIB)
19
20 add_executable(boost_atomic_cmake_self_test main.cpp)
21 target_link_libraries(boost_atomic_cmake_self_test Boost::atomic)