From 6fba35ace59e9e7b1c3007ca6246a42ed6ead145 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 18 Sep 2024 18:18:26 +0300 Subject: [PATCH] Regenerate CMakeLists.txt --- CMakeLists.txt | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a59793b..7d0fd6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,21 +1,29 @@ -# Copyright 2019 Mike Dev +# Generated by `boostdep --cmake function_types` +# Copyright 2020, 2021 Peter Dimov # 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 ) -project( boost_function_types VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX ) +cmake_minimum_required(VERSION 3.5...3.20) -add_library( boost_function_types INTERFACE ) -add_library( Boost::function_types ALIAS boost_function_types ) +project(boost_function_types VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) -target_include_directories( boost_function_types INTERFACE include ) +add_library(boost_function_types INTERFACE) +add_library(Boost::function_types ALIAS boost_function_types) -target_link_libraries( boost_function_types - INTERFACE - Boost::config - Boost::core - Boost::detail - Boost::mpl - Boost::preprocessor - Boost::type_traits +target_include_directories(boost_function_types INTERFACE include) + +target_link_libraries(boost_function_types + INTERFACE + Boost::config + Boost::core + Boost::detail + Boost::mpl + Boost::preprocessor + Boost::type_traits ) + +if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") + + add_subdirectory(test) + +endif()