aboutsummaryrefslogtreecommitdiff
path: root/ports/rp2/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ports/rp2/CMakeLists.txt')
-rw-r--r--ports/rp2/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt
index 3968194dc..3db0e6b62 100644
--- a/ports/rp2/CMakeLists.txt
+++ b/ports/rp2/CMakeLists.txt
@@ -27,6 +27,8 @@ project(${MICROPY_TARGET})
pico_sdk_init()
+include(${MICROPY_DIR}/py/usermod.cmake)
+
add_executable(${MICROPY_TARGET})
set(MICROPY_QSTRDEFS_PORT
@@ -80,6 +82,7 @@ set(MICROPY_SOURCE_PORT
set(MICROPY_SOURCE_QSTR
${MICROPY_SOURCE_PY}
${MICROPY_SOURCE_EXTMOD}
+ ${MICROPY_SOURCE_USERMOD}
${MICROPY_DIR}/lib/utils/mpirq.c
${MICROPY_DIR}/lib/utils/sys_stdio_mphal.c
${PROJECT_SOURCE_DIR}/machine_adc.c
@@ -142,7 +145,10 @@ target_sources(${MICROPY_TARGET} PRIVATE
${MICROPY_SOURCE_PORT}
)
+target_link_libraries(${MICROPY_TARGET} usermod)
+
target_include_directories(${MICROPY_TARGET} PRIVATE
+ ${MICROPY_INC_USERMOD}
"${PROJECT_SOURCE_DIR}"
"${MICROPY_DIR}"
"${CMAKE_BINARY_DIR}"