These are useful for dealing with low power situations, though powman's time keeping leaves a little to be desired.
19 lines
435 B
CMake
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"
|
|
)
|