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 8file( GLOB example_src_files *.cpp ) 9 10find_package(Threads REQUIRED) 11 12foreach( file IN LISTS example_src_files ) 13 14 get_filename_component( example_name ${file} NAME_WE ) 15 16 add_executable( boost_signals2_example_${example_name} ${file} ) 17 target_link_libraries( boost_signals2_example_${example_name} 18 PUBLIC 19 Boost::signals2 20 Boost::io 21 Threads::Threads 22 ) 23 24endforeach() 25