pimoroni-pico-rp2350/modules/c/wakeup/micropython.cmake
Phil Howard da4cbd989f LiPo: Add powman and wakeup modules.
These are useful for dealing with low power situations, though
powman's time keeping leaves a little to be desired.
2025-06-06 15:35:39 +01:00

19 lines
435 B
CMake

add_library(usermod_wakeup INTERFACE)
target_sources(usermod_wakeup INTERFACE
${CMAKE_CURRENT_LIST_DIR}/wakeup.c
${CMAKE_CURRENT_LIST_DIR}/wakeup.cpp
)
target_include_directories(usermod_wakeup INTERFACE
${CMAKE_CURRENT_LIST_DIR}
)
target_link_libraries(usermod INTERFACE usermod_wakeup)
set_source_files_properties(
${CMAKE_CURRENT_LIST_DIR}/wakeup.c
PROPERTIES COMPILE_FLAGS
"-Wno-discarded-qualifiers"
)