16 lines
412 B
CMake
16 lines
412 B
CMake
add_library(f1ll STATIC
|
|
src/usart_core.cpp
|
|
src/dma_helper.cpp
|
|
src/str_util.cpp
|
|
src/console_handler.cpp
|
|
src/ringbuffer.cpp
|
|
)
|
|
|
|
target_include_directories(f1ll PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/inc
|
|
)
|
|
|
|
target_link_libraries(f1ll PUBLIC platform stm32cubemx)
|
|
|
|
# ST code quality workaround - Suppres register storage class warning (C++17...)
|
|
target_compile_options(f1ll PRIVATE -Wno-register)
|