mirror of
https://github.com/boostorg/leaf.git
synced 2026-01-19 04:22:08 +00:00
Regenerate CMakeLists.txt
This commit is contained in:
@@ -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
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
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})
|
||||
# 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user