1 changed files with 6 additions and 4 deletions
@ -1,15 +1,17 @@ |
|||
cmake_minimum_required(VERSION 3.10) |
|||
|
|||
get_filename_component(TARGET_NAME "${CMAKE_CURRENT_SOURCE_DIR}" NAME) |
|||
|
|||
set(COMMON_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../library/CMakeLists.txt") |
|||
|
|||
if(EXISTS ${COMMON_CMAKE_PATH}) |
|||
include(${COMMON_CMAKE_PATH}) |
|||
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 stm32cubemx) |
|||
target_link_libraries(Spoolold PUBLIC stm32cubemx) |
|||
target_link_libraries(${TARGET_NAME} PUBLIC stm32cubemx) |
|||
else() |
|||
message(WARNING "[Spoolold] Dependency 'stm32cubemx' not found.") |
|||
message(WARNING "[${TARGET_NAME}] Dependency 'stm32cubemx' not found.") |
|||
endif() |
|||
Loading…
Reference in new issue