From 48eff56a9aa01d37625e11247b53134207e5c749 Mon Sep 17 00:00:00 2001 From: Hays Chan <25737801+hayschan@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:48:17 +0800 Subject: [PATCH] Remove relative path in example CMakeLists.txt --- examples/default_example/main/CMakeLists.txt | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/examples/default_example/main/CMakeLists.txt b/examples/default_example/main/CMakeLists.txt index 21c85d6..6f17445 100644 --- a/examples/default_example/main/CMakeLists.txt +++ b/examples/default_example/main/CMakeLists.txt @@ -1,13 +1,2 @@ -# Be aware this file should not be takes as inspiration on how to set up compilation with the CMake build system when using ESP-IDF, because it directly includes the implementation files. -# This has to be done because the examples are build to test if they are still working and to automatically inform the library if a pull request would break examples. -# To actually include the library in your ESP-IDF project read the documentation especially the Installation section -set(srcs - xgzf4000-poll-data.c - ../../../xgzf4000.c -) - -idf_component_register( - SRCS ${srcs} - INCLUDE_DIRS "../../../include" - PRIV_INCLUDE_DIRS "../../../priv_include" -) \ No newline at end of file +idf_component_register(SRCS "xgzf4000-poll-data.c" + INCLUDE_DIRS ".")