Regenerate CMakeLists.txt with boostdep --cmake optional

This commit is contained in:
Peter Dimov
2024-01-15 20:11:44 +02:00
parent e962a134f0
commit 5f12573608

View File

@ -1,25 +1,32 @@
# Copyright 2019 Mike Dev # Generated by `boostdep --cmake optional`
# Copyright 2020, 2021 Peter Dimov
# Distributed under the Boost Software License, Version 1.0. # 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 # https://www.boost.org/LICENSE_1_0.txt
cmake_minimum_required( VERSION 3.5...3.20 ) cmake_minimum_required(VERSION 3.5...3.20)
project( boost_optional VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX )
add_library( boost_optional INTERFACE ) project(boost_optional VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
add_library( Boost::optional ALIAS boost_optional )
target_include_directories( boost_optional INTERFACE include ) add_library(boost_optional INTERFACE)
add_library(Boost::optional ALIAS boost_optional)
target_link_libraries( boost_optional target_include_directories(boost_optional INTERFACE include)
INTERFACE
Boost::assert target_link_libraries(boost_optional
Boost::config INTERFACE
Boost::core Boost::assert
Boost::detail Boost::config
Boost::move Boost::core
Boost::predef Boost::move
Boost::static_assert Boost::predef
Boost::throw_exception Boost::static_assert
Boost::type_traits Boost::throw_exception
Boost::utility Boost::type_traits
Boost::utility
) )
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)
endif()