]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/cmake/test/atomic/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / cmake / test / atomic / CMakeLists.txt
CommitLineData
f67539c2
TL
1# Copyright 2018, 2019 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
5cmake_minimum_required(VERSION 3.5...3.16)
6
7project(boost_atomic_install_test LANGUAGES CXX)
8
f67539c2
TL
9if(BOOST_RUNTIME_LINK STREQUAL "static")
10 set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
11endif()
12
1e59de90
TL
13find_package(boost_atomic REQUIRED)
14
f67539c2
TL
15add_executable(main main.cpp)
16target_link_libraries(main Boost::atomic)
17
18enable_testing()
19add_test(NAME main COMMAND main)
20
21add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)