Skip to content

Commit

Permalink
Add gitignored private files
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Orru <[email protected]>
  • Loading branch information
sorru94 committed Nov 19, 2024
1 parent c33262a commit 102195c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ run-clang-tidy.py

# Generic python cache
__pycache__

# Private files
*.priv
16 changes: 15 additions & 1 deletion examples/datastreams/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@

cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# Get the absolute path of the current directory
get_filename_component(CURRENT_DIR "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
# Construct the absolute path to sdkconfig.priv
set(SDKCONFIG_PRIV_PATH "${CURRENT_DIR}/sdkconfig.priv")
# Construct the absolute path to sdkconfig.defaults
set(SDKCONFIG_DEFAULTS_PATH "${CURRENT_DIR}/sdkconfig.defaults")
# Check if sdkconfig.priv exists and add it to SDKCONFIG_DEFAULTS
if(EXISTS "${SDKCONFIG_PRIV_PATH}")
if(EXISTS "${SDKCONFIG_DEFAULTS_PATH}")
set(SDKCONFIG_DEFAULTS "sdkconfig.defaults;sdkconfig.priv")
else()
set(SDKCONFIG_DEFAULTS "sdkconfig.priv")
endif()
endif()

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(datastreams)

0 comments on commit 102195c

Please sign in to comment.