Skip to content

Commit

Permalink
more cmakefile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Dec 23, 2023
1 parent ba94808 commit 2b4e702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_STANDARD 17)

set(BLUEPAD32_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
set(BTSTACK_ROOT ${BLUEPAD32_ROOT}/external/btstack)

set(EXTRA_COMPONENT_DIRS ${BLUEPAD32_ROOT}/src/components)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
Expand Down
5 changes: 2 additions & 3 deletions examples/pico_w/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ else()
set(PICO_BOARD "pico_w")
endif()

set(BLUEPAD32_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)

# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(pico_sdk_import.cmake)

set(BLUEPAD32_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)

# To use BTstack from Pico SDK do
#set(BTSTACK_ROOT ${PICO_SDK_PATH}/lib/btstack)

# To use it from Bluepad32 (up-to-date, with custom patches for controllers):
set(BTSTACK_ROOT ${BLUEPAD32_ROOT}/external/btstack)

Expand Down

0 comments on commit 2b4e702

Please sign in to comment.