You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
cmake_minimum_required(VERSION 3.10)
|
|
|
|
set(COMMON_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../library/CMakeLists.txt")
|
|
|
|
if(EXISTS ${COMMON_CMAKE_PATH})
|
|
include(${COMMON_CMAKE_PATH})
|
|
else()
|
|
message(FATAL_ERROR "Cannot find common build logic at ${COMMON_CMAKE_PATH}")
|
|
endif()
|
|
|
|
if(TARGET list)
|
|
target_link_libraries(bspMCU PUBLIC list)
|
|
else()
|
|
message(WARNING "[bspMCU] Dependency 'list' not found.")
|
|
endif()
|
|
|
|
if(TARGET ringbuffer)
|
|
target_link_libraries(bspMCU PUBLIC ringbuffer)
|
|
else()
|
|
message(WARNING "[bspMCU] Dependency 'ringbuffer' not found.")
|
|
endif()
|
|
|
|
if(TARGET peripheral)
|
|
target_link_libraries(bspMCU PUBLIC peripheral)
|
|
else()
|
|
message(WARNING "[bspMCU] Dependency 'peripheral' not found.")
|
|
endif()
|
|
|
|
if(TARGET lua)
|
|
target_link_libraries(bspMCU PUBLIC lua)
|
|
else()
|
|
message(WARNING "[bspMCU] Dependency 'lua' not found.")
|
|
endif()
|
|
|
|
if(TARGET stm32cubemx)
|
|
target_link_libraries(bspMCU PUBLIC stm32cubemx)
|
|
else()
|
|
message(WARNING "[bspMCU] Dependency 'stm32cubemx' not found.")
|
|
endif()
|