-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
set(PIMORONI_PICO_PATH ../../../../pimoroni-pico) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../pimoroni_pico_import.cmake) | ||
|
||
include_directories(${PIMORONI_PICO_PATH}/micropython) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../") | ||
list(APPEND CMAKE_MODULE_PATH "${PIMORONI_PICO_PATH}/micropython") | ||
list(APPEND CMAKE_MODULE_PATH "${PIMORONI_PICO_PATH}/micropython/modules") | ||
|
||
# Enable support for string_view (for PicoGraphics) | ||
set(CMAKE_C_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
# Essential | ||
include(pimoroni_i2c/micropython) | ||
include(pimoroni_bus/micropython) | ||
|
||
# Sensors & Breakouts | ||
include(micropython-common-breakouts) | ||
include(pcf85063a/micropython) | ||
|
||
# Utility | ||
include(adcfft/micropython) | ||
|
||
# Note: cppmem is *required* for C++ code to function on MicroPython | ||
# it redirects `malloc` and `free` calls to MicroPython's heap | ||
include(cppmem/micropython) | ||
|
||
# version.py, pimoroni.py and boot.py | ||
include(modules_py/modules_py) |