Make it work
This commit is contained in:
parent
8e9b69b87a
commit
4e1f01c4d4
25 changed files with 772 additions and 180 deletions
|
@ -32,7 +32,7 @@ project(${CMAKE_PROJECT_NAME})
|
|||
message("Build type: " ${CMAKE_BUILD_TYPE})
|
||||
|
||||
# Enable CMake support for ASM and C languages
|
||||
enable_language(C ASM)
|
||||
enable_language(C CXX ASM)
|
||||
|
||||
# Create an executable object type
|
||||
add_executable(${CMAKE_PROJECT_NAME})
|
||||
|
@ -40,6 +40,10 @@ add_executable(${CMAKE_PROJECT_NAME})
|
|||
# Add STM32CubeMX generated sources
|
||||
add_subdirectory(cmake/stm32cubemx)
|
||||
|
||||
add_subdirectory(components/platform)
|
||||
add_subdirectory(components/f4ll)
|
||||
add_subdirectory(components/app)
|
||||
|
||||
# Link directories setup
|
||||
target_link_directories(${CMAKE_PROJECT_NAME} PRIVATE
|
||||
# Add user defined library search paths
|
||||
|
@ -65,4 +69,8 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
|
|||
stm32cubemx
|
||||
|
||||
# Add user defined libraries
|
||||
app
|
||||
)
|
||||
|
||||
# Poor quality LL code from ST
|
||||
target_compile_options(stm32cubemx INTERFACE -Wno-unused-parameter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue