1# Copyright 2019 Mike Dev 2# Distributed under the Boost Software License, Version 1.0. 3# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt 4# 5# NOTE: CMake support for Boost.Signals2 is currently experimental at best 6# and the interface is likely to change in the future 7 8cmake_minimum_required( VERSION 3.5...3.16 ) 9project( BoostSignals2 LANGUAGES CXX) 10 11option( BOOST_SIGNALS2_INCLUDE_EXAMPLES "Add boost signals2 examples" OFF ) 12 13add_library( boost_signals2 INTERFACE ) 14add_library( Boost::signals2 ALIAS boost_signals2 ) 15 16target_include_directories( boost_signals2 INTERFACE include ) 17 18target_link_libraries( boost_signals2 19 INTERFACE 20 Boost::assert 21 Boost::bind 22 Boost::config 23 Boost::core 24 Boost::function 25 Boost::iterator 26 Boost::mpl 27 Boost::optional 28 Boost::parameter 29 Boost::predef 30 Boost::preprocessor 31 Boost::smart_ptr 32 Boost::throw_exception 33 Boost::tuple 34 Boost::type_traits 35 Boost::variant 36) 37 38if( BOOST_SIGNALS2_INCLUDE_EXAMPLES ) 39 add_subdirectory( example ) 40endif() 41 42