2021-03-18 17:29:38 +02:00
|
|
|
# Generated by `boostdep --cmake unordered`
|
2022-06-02 21:46:56 +03:00
|
|
|
# Copyright 2020, 2021 Peter Dimov
|
2021-03-18 17:29:38 +02:00
|
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
|
|
# https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
|
2023-11-30 17:40:41 +02:00
|
|
|
cmake_minimum_required(VERSION 3.8...3.20)
|
2021-03-18 17:29:38 +02:00
|
|
|
|
|
|
|
project(boost_unordered VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
|
|
|
|
|
|
|
add_library(boost_unordered INTERFACE)
|
|
|
|
add_library(Boost::unordered ALIAS boost_unordered)
|
|
|
|
|
|
|
|
target_include_directories(boost_unordered INTERFACE include)
|
|
|
|
|
|
|
|
target_link_libraries(boost_unordered
|
|
|
|
INTERFACE
|
|
|
|
Boost::assert
|
|
|
|
Boost::config
|
|
|
|
Boost::container_hash
|
|
|
|
Boost::core
|
2022-06-02 21:46:56 +03:00
|
|
|
Boost::mp11
|
2021-03-18 17:29:38 +02:00
|
|
|
Boost::predef
|
|
|
|
Boost::throw_exception
|
|
|
|
)
|
|
|
|
|
2024-05-11 11:28:06 -05:00
|
|
|
if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
|
|
|
|
|
|
|
file(GLOB_RECURSE boost_unordered_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
|
|
|
|
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_unordered_IDEFILES} PREFIX "Header Files")
|
|
|
|
list(APPEND boost_unordered_IDEFILES extra/boost_unordered.natvis)
|
|
|
|
target_sources(boost_unordered PRIVATE ${boost_unordered_IDEFILES})
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
2023-11-30 17:40:41 +02:00
|
|
|
target_compile_features(boost_unordered INTERFACE cxx_std_11)
|
|
|
|
|
2021-03-18 17:29:38 +02:00
|
|
|
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
|
|
|
|
|
|
|
add_subdirectory(test)
|
|
|
|
|
|
|
|
endif()
|