forked from boostorg/static_string
Update CMakeLists.txt
This commit is contained in:
@ -1,3 +1,36 @@
|
|||||||
|
# Generated by `boostdep --cmake static_string`
|
||||||
|
# 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_static_string VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
||||||
|
|
||||||
|
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||||
|
|
||||||
|
add_library(boost_static_string INTERFACE)
|
||||||
|
add_library(Boost::static_string ALIAS boost_static_string)
|
||||||
|
|
||||||
|
target_include_directories(boost_static_string INTERFACE include)
|
||||||
|
|
||||||
|
target_link_libraries(boost_static_string
|
||||||
|
INTERFACE
|
||||||
|
Boost::assert
|
||||||
|
Boost::container_hash
|
||||||
|
Boost::static_assert
|
||||||
|
Boost::throw_exception
|
||||||
|
Boost::utility
|
||||||
|
)
|
||||||
|
|
||||||
|
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
||||||
|
|
||||||
|
add_subdirectory(test)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
else()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
||||||
#
|
#
|
||||||
@ -7,12 +40,6 @@
|
|||||||
# Official repository: https://github.com/boostorg/static_string
|
# Official repository: https://github.com/boostorg/static_string
|
||||||
#
|
#
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.5.1)
|
|
||||||
|
|
||||||
if (POLICY CMP0074)
|
|
||||||
cmake_policy (SET CMP0074 NEW)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
function (DoGroupSources curdir rootdir folder)
|
function (DoGroupSources curdir rootdir folder)
|
||||||
@ -40,8 +67,6 @@ endfunction()
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
project (StaticString VERSION 1)
|
|
||||||
|
|
||||||
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
|
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
@ -150,3 +175,5 @@ file (GLOB_RECURSE PROJECT_FILES
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory (test)
|
add_subdirectory (test)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
Reference in New Issue
Block a user