2021-01-21 00:56:11 +00:00
|
|
|
add_library(usermod_pico_explorer INTERFACE)
|
|
|
|
|
|
|
|
target_sources(usermod_pico_explorer INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_explorer.c
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_explorer.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_explorer/pico_explorer.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../drivers/st7789/st7789.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/pico_graphics.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_graphics/types.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(usermod_pico_explorer INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(usermod_pico_explorer INTERFACE
|
2021-03-23 13:00:01 +00:00
|
|
|
MODULE_PICOEXPLORER_ENABLED=1
|
2021-01-21 00:56:11 +00:00
|
|
|
)
|
|
|
|
|
2021-03-22 20:43:23 +00:00
|
|
|
target_link_libraries(usermod INTERFACE usermod_pico_explorer)
|
|
|
|
|
|
|
|
set_source_files_properties(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_explorer.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
"-Wno-discarded-qualifiers -Wno-implicit-int"
|
2021-03-23 13:00:01 +00:00
|
|
|
)
|