From af3e70ada5c1ee39100923267aab38c72824b2f0 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 4 Jul 2022 20:17:39 +0200 Subject: [PATCH] Rework as esp-idf component --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a3d6c4..b31aaf8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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,13 @@ 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() + +idf_component_register( + INCLUDE_DIRS + include +) + +endif() +