2022-12-16 20:53:16 +00:00
|
|
|
set(MOD_NAME hub75)
|
|
|
|
string(TOUPPER ${MOD_NAME} MOD_NAME_UPPER)
|
|
|
|
add_library(usermod_${MOD_NAME} INTERFACE)
|
2021-11-18 12:51:43 +00:00
|
|
|
|
2022-12-16 20:53:16 +00:00
|
|
|
target_sources(usermod_${MOD_NAME} INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/${MOD_NAME}.c
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/${MOD_NAME}.cpp
|
2021-11-23 12:48:55 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/hub75/hub75.cpp
|
2021-11-18 12:51:43 +00:00
|
|
|
)
|
|
|
|
|
2022-12-16 20:53:16 +00:00
|
|
|
target_include_directories(usermod_${MOD_NAME} INTERFACE
|
2021-11-18 12:51:43 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
2022-12-16 20:53:16 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/
|
2021-11-18 12:51:43 +00:00
|
|
|
)
|
|
|
|
|
2022-12-16 20:53:16 +00:00
|
|
|
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
|
2021-11-18 12:51:43 +00:00
|
|
|
MODULE_HUB75_ENABLED=1
|
|
|
|
)
|
|
|
|
|
2022-12-16 20:53:16 +00:00
|
|
|
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME})
|
2021-11-18 12:51:43 +00:00
|
|
|
|
|
|
|
set_source_files_properties(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/hub75.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
"-Wno-discarded-qualifiers -Wno-implicit-int"
|
|
|
|
)
|
2021-11-22 14:12:18 +00:00
|
|
|
|
2022-12-16 20:53:16 +00:00
|
|
|
pico_generate_pio_header(usermod_${MOD_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../../drivers/hub75/hub75.pio)
|