From ac4fec435f027e4531cea2e89112df895e9e0b78 Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Tue, 18 Sep 2018 13:19:19 +0200 Subject: [PATCH] [CMake] Add minimal cmake support CMake file only supports add_subdirectory workflow. No installation and no unit tests. --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e37950a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,26 @@ +# Copyright 2019 Mike Dev +# 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 +# +# NOTE: CMake support for Boost.TypeIndex is currently experimental at best +# and the interface is likely to change in the future + +cmake_minimum_required(VERSION 3.5) +project(Boost.TypeIndex) + +add_library(boost_type_index INTERFACE) +add_library(Boost::type_index ALIAS boost_type_index) + +target_include_directories(boost_type_index INTERFACE include) + +target_link_libraries(boost_type_index + INTERFACE + Boost::config + Boost::container_hash + Boost::core + Boost::preprocessor + Boost::smart_ptr + Boost::static_assert + Boost::throw_exception + Boost::type_traits +)