Files
boost_function/CMakeLists.txt

31 lines
762 B
CMake
Raw Permalink Normal View History

2021-03-19 04:35:09 +02:00
# Generated by `boostdep --cmake function`
2023-02-17 04:20:51 +02:00
# Copyright 2020, 2021 Peter Dimov
2019-01-07 00:09:56 +02:00
# Distributed under the Boost Software License, Version 1.0.
2021-03-19 04:35:09 +02:00
# https://www.boost.org/LICENSE_1_0.txt
2019-01-07 00:09:56 +02:00
2023-02-17 04:20:51 +02:00
cmake_minimum_required(VERSION 3.5...3.20)
2019-01-07 00:09:56 +02:00
2021-03-19 04:35:09 +02:00
project(boost_function VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
2019-01-07 00:09:56 +02:00
add_library(boost_function INTERFACE)
add_library(Boost::function ALIAS boost_function)
target_include_directories(boost_function INTERFACE include)
target_link_libraries(boost_function
2021-03-19 04:35:09 +02:00
INTERFACE
Boost::assert
Boost::bind
Boost::config
Boost::core
Boost::preprocessor
Boost::throw_exception
Boost::type_traits
2019-01-07 00:09:56 +02:00
)
2021-03-19 04:35:09 +02:00
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)
endif()