2021-04-21 14:35:26 +01:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../../../libraries/pico_scroll/pico_scroll.cmake)
|
|
|
|
|
2021-01-20 15:19:38 +00:00
|
|
|
add_library(usermod_pico_scroll INTERFACE)
|
|
|
|
|
|
|
|
target_sources(usermod_pico_scroll INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_scroll.c
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_scroll.cpp
|
2021-04-21 14:35:26 +01:00
|
|
|
${PICO_SCROLL_SOURCES}
|
2021-01-20 15:19:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(usermod_pico_scroll INTERFACE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(usermod_pico_scroll INTERFACE
|
2021-03-23 13:00:01 +00:00
|
|
|
MODULE_PICOSCROLL_ENABLED=1
|
2021-01-20 15:19:38 +00:00
|
|
|
)
|
|
|
|
|
2021-03-22 20:43:23 +00:00
|
|
|
target_link_libraries(usermod INTERFACE usermod_pico_scroll)
|
|
|
|
|
|
|
|
set_source_files_properties(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_scroll.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
"-Wno-discarded-qualifiers -Wno-implicit-int"
|
2021-03-23 13:00:01 +00:00
|
|
|
)
|