25 lines
621 B
CMake
25 lines
621 B
CMake
set(MOD_NAME adcfft)
|
|
string(TOUPPER ${MOD_NAME} MOD_NAME_UPPER)
|
|
add_library(usermod_${MOD_NAME} INTERFACE)
|
|
|
|
target_sources(usermod_${MOD_NAME} INTERFACE
|
|
${CMAKE_CURRENT_LIST_DIR}/${MOD_NAME}.c
|
|
${CMAKE_CURRENT_LIST_DIR}/${MOD_NAME}.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/adcfft/adcfft.cpp
|
|
)
|
|
|
|
target_include_directories(usermod_${MOD_NAME} INTERFACE
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
|
|
MODULE_ADCFFT_ENABLED=1
|
|
)
|
|
|
|
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME}
|
|
hardware_pio
|
|
hardware_dma
|
|
hardware_adc
|
|
hardware_irq
|
|
)
|