From 80d062b3fbe24d0c57abe47e38ac6be225f5b0fc Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Sat, 30 Dec 2023 14:32:19 +0000 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 625ac5f..2c228eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,18 +1,20 @@ -set(sourcedirs - . - VectorAlgebra/src -) +if(ESP_PLATFORM) + set(sourcedirs + . + VectorAlgebra/src + ) -set(includedirs - . - VectorAlgebra/include -) + set(includedirs + . + VectorAlgebra/include + ) -idf_component_register( - SRC_DIRS ${sourcedirs} - INCLUDE_DIRS ${includedirs} - REQUIRES arduino -) + idf_component_register( + SRC_DIRS ${sourcedirs} + INCLUDE_DIRS ${includedirs} + REQUIRES arduino + ) +endif() project(RoboidControl)