2022-06-07 16:37:06 +01:00
|
|
|
set(MOD_NAME picographics)
|
2022-03-21 17:02:46 +00: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
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/st7789/st7789.cpp
|
2022-06-07 16:37:06 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/st7735/st7735.cpp
|
2022-06-16 09:23:29 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/sh1107/sh1107.cpp
|
2022-06-23 15:48:45 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/uc8151/uc8151.cpp
|
2022-06-14 09:57:00 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/uc8159/uc8159.cpp
|
2022-11-03 13:30:07 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/st7567/st7567.cpp
|
2022-03-21 17:02:46 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics.cpp
|
2022-06-16 09:23:29 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_1bit.cpp
|
2022-06-23 15:48:45 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_1bitY.cpp
|
2022-06-30 15:24:58 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_3bit.cpp
|
2022-06-13 11:26:21 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_p4.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_p8.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_rgb332.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_rgb565.cpp
|
2022-10-13 14:02:36 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics_pen_rgb888.cpp
|
2022-03-21 17:02:46 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/types.cpp
|
|
|
|
)
|
|
|
|
|
2022-06-16 17:38:57 +01:00
|
|
|
pico_generate_pio_header(usermod_${MOD_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../../drivers/st7789/st7789_parallel.pio)
|
|
|
|
|
2022-03-21 17:02:46 +00:00
|
|
|
target_include_directories(usermod_${MOD_NAME} INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(usermod_${MOD_NAME} INTERFACE
|
|
|
|
-DMODULE_${MOD_NAME_UPPER}_ENABLED=1
|
|
|
|
)
|
|
|
|
|
2022-05-27 16:52:43 +01:00
|
|
|
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME})
|
|
|
|
|
|
|
|
set_source_files_properties(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/${MOD_NAME}.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
"-Wno-discarded-qualifiers"
|
2022-06-14 09:57:00 +01:00
|
|
|
)
|