Compare commits

...

2 Commits

Author SHA1 Message Date
8bf7682f54 Rework as esp-idf component 2023-11-23 17:17:05 +01:00
46c7a05f82 Update CMakeLists.txt 2021-06-10 00:47:04 +03:00

View File

@ -1,12 +1,11 @@
# Copyright 2018 Mike Dev
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#
# NOTE: CMake support for Boost.typeof is currently experimental at best
# and the interface is likely to change in the future
cmake_minimum_required(VERSION 3.5)
project(BoostTypeof LANGUAGES CXX)
if(NOT DEFINED IDF_TARGET)
cmake_minimum_required(VERSION 3.5...3.20)
project(boost_typeof VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
add_library(boost_typeof INTERFACE)
add_library(Boost::typeof ALIAS boost_typeof)
@ -20,3 +19,19 @@ target_link_libraries(boost_typeof
Boost::type_traits
)
else()
FILE(GLOB_RECURSE headers include/*.h include/*.hpp)
idf_component_register(
SRCS
${headers}
INCLUDE_DIRS
include
REQUIRES
boost_config
boost_preprocessor
boost_type_traits
)
endif()