2021-08-19 15:25:12 +01:00
|
|
|
set(MOD_NAME plasma)
|
2021-07-21 14:51:37 +01:00
|
|
|
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
|
2021-08-19 13:40:46 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/plasma/apa102.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/plasma/ws2812.cpp
|
2021-07-21 14:51:37 +01:00
|
|
|
)
|
2021-08-19 13:40:46 +01:00
|
|
|
pico_generate_pio_header(usermod_${MOD_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../../drivers/plasma/apa102.pio)
|
|
|
|
pico_generate_pio_header(usermod_${MOD_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../../drivers/plasma/ws2812.pio)
|
2021-07-21 14:51:37 +01:00
|
|
|
|
|
|
|
target_include_directories(usermod_${MOD_NAME} INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
2021-08-19 13:40:46 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/plasma/
|
2021-07-21 14:51:37 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
|
|
|
|
MODULE_PLASMA_ENABLED=1
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME})
|