From 0b2098c1ba716d89a85bc4d313fe65be0c00af3f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 28 May 2021 05:15:34 +0300 Subject: [PATCH] Regenerate CMakeLists.txt --- CMakeLists.txt | 55 ++++++++++++++++++-------------------------------- 1 file changed, 20 insertions(+), 35 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3190e32..fcdab91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,35 +1,20 @@ -cmake_minimum_required(VERSION 3.8) - -project(leaf VERSION 0.2.1 LANGUAGES CXX) - -add_library(leaf INTERFACE) - -target_include_directories(leaf INTERFACE - $ - $ -) - -include(CMakePackageConfigHelpers) -write_basic_package_version_file( - "${PROJECT_BINARY_DIR}/leaf-config-version.cmake" - COMPATIBILITY SameMajorVersion -) - -include(GNUInstallDirs) -install(TARGETS leaf - EXPORT leaf-targets - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} -) - -install(EXPORT leaf-targets - FILE - leaf-config.cmake - NAMESPACE - zajo:: - DESTINATION - ${CMAKE_INSTALL_DATADIR}/cmake/leaf -) - -install(FILES "${PROJECT_BINARY_DIR}/leaf-config-version.cmake" - DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/leaf) -install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) \ No newline at end of file +# Generated by `boostdep --cmake leaf` +# Copyright 2020 Peter Dimov +# Distributed under the Boost Software License, Version 1.0. +# https://www.boost.org/LICENSE_1_0.txt + +cmake_minimum_required(VERSION 3.5...3.16) + +project(boost_leaf VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) + +add_library(boost_leaf INTERFACE) +add_library(Boost::leaf ALIAS boost_leaf) + +target_include_directories(boost_leaf INTERFACE include) + +if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") + + add_subdirectory(test) + +endif() +