summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/atomic/CMakeLists.txt
blob: 73378fe4fc5c106aa61e00be8fff13addb04d2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2018 Mike Dev
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt

cmake_minimum_required(VERSION 3.5)
project(BoostAtomic LANGUAGES CXX)

add_library(boost_atomic src/lockpool.cpp)
add_library(Boost::atomic ALIAS boost_atomic)

target_include_directories(boost_atomic PUBLIC include)

target_link_libraries(boost_atomic
    PUBLIC
        Boost::assert
        Boost::config
        Boost::type_traits
)

target_compile_definitions(boost_atomic PRIVATE BOOST_ATOMIC_SOURCE)

if(${BUILD_SHARED_LIBS})
    target_compile_definitions(boost_atomic PUBLIC BOOST_ATOMIC_DYN_LINK)
else()
    target_compile_definitions(boost_atomic PUBLIC BOOST_ATOMIC_STATIC_LINK)
endif()