Change the build system to CMake
This commit is contained in:
parent
fba93a37f7
commit
28502efcb4
35 changed files with 1318 additions and 1225 deletions
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
add_library(f4ll STATIC
|
||||
src/console_handler.cpp
|
||||
src/crc_handler.cpp
|
||||
src/dma_helper.cpp
|
||||
src/fault.cpp
|
||||
src/memcpy_dma.cpp
|
||||
src/packet_usart.cpp
|
||||
src/str_util.cpp
|
||||
src/usart_core.cpp
|
||||
)
|
||||
|
||||
target_include_directories(f4ll PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/inc
|
||||
)
|
||||
|
||||
target_link_libraries(f4ll PUBLIC platform stm32cubemx)
|
||||
|
||||
# ST code quality workaround - Suppres register storage class warning (C++17...)
|
||||
target_compile_options(f4ll PRIVATE -Wno-register)
|
Loading…
Add table
Add a link
Reference in a new issue