Compare commits

...

2 Commits

Author SHA1 Message Date
2d2f10715d glob headers 2022-07-05 10:48:28 +02:00
af3e70ada5 Rework as esp-idf component 2022-07-04 20:17:39 +02:00

View File

@ -4,6 +4,8 @@
# See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt
if(NOT DEFINED IDF_TARGET)
# NOTE:
# CMake support for Boost.Predef is currently experimental at best and the
# interface is likely to change in the future
@ -36,3 +38,17 @@ target_include_directories( boost_predef INTERFACE include )
# Add an alias to be compatible with consumers that may have used the
# FindBoost script.
add_library( Boost::predef ALIAS boost_predef )
else()
FILE(GLOB_RECURSE headers include/*.h include/*.hpp)
idf_component_register(
SRCS
${headers}
INCLUDE_DIRS
include
)
endif()