2025-10-11 14:33:16 +08:00
|
|
|
# Create an INTERFACE library for our C module.
|
|
|
|
|
add_library(usermod_eigenmath INTERFACE)
|
|
|
|
|
|
|
|
|
|
# Add our source files to the lib
|
|
|
|
|
target_sources(usermod_eigenmath INTERFACE
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/eigenmath.c
|
2025-10-13 15:42:15 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/eheap.c
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/eigenmath_mpy.c
|
2025-10-11 14:33:16 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Add the current directory as an include directory.
|
|
|
|
|
target_include_directories(usermod_eigenmath INTERFACE
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
|
)
|
2025-10-13 15:42:15 +08:00
|
|
|
set(PICO_STACK_SIZE 0x4000 CACHE STRING "App stack size" FORCE)
|
2025-10-11 14:33:16 +08:00
|
|
|
|
|
|
|
|
# Link our INTERFACE library to the usermod target.
|
2025-10-13 15:42:15 +08:00
|
|
|
target_link_libraries(usermod INTERFACE usermod_eigenmath)
|
|
|
|
|
|