summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/signals2/example/CMakeLists.txt
blob: 3b42e58d8c75b6a50ba32c614186564ebcd8aae8 (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
# Copyright 2019 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
#
# NOTE: CMake support for Boost.Signals2 is currently experimental at best
#       and the interface is likely to change in the future

file( GLOB example_src_files *.cpp )

find_package(Threads REQUIRED)

foreach( file IN LISTS example_src_files )

    get_filename_component( example_name ${file} NAME_WE )

    add_executable( boost_signals2_example_${example_name} ${file} )
    target_link_libraries( boost_signals2_example_${example_name}
        PUBLIC
            Boost::signals2
            Boost::io
            Threads::Threads
    )

endforeach()