1 # Copyright 2018 Mike Dev
2 # Copyright 2020 Andrey Semashev
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
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
10 cmake_minimum_required(VERSION 3.5)
12 project(BoostAtomicCMakeSelfTest)
14 # Use experimental superproject to pull library dependencies recursively
15 set(BOOST_ENABLE_CMAKE 1)
16 add_subdirectory(../../../.. "${CMAKE_CURRENT_BINARY_DIR}/boost_superproject")
18 add_definitions(-DBOOST_ALL_NO_LIB)
20 add_executable(boost_atomic_cmake_self_test main.cpp)
21 target_link_libraries(boost_atomic_cmake_self_test Boost::atomic)