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(peripheral PUBLIC list) else() message(WARNING "[peripheral] Dependency 'list' not found.") endif() if(TARGET platform_Linux) target_link_libraries(peripheral PUBLIC platform_Linux) else() message(WARNING "[peripheral] Dependency 'platform_Linux' not found.") endif() if(TARGET log) target_link_libraries(peripheral PUBLIC log) else() message(WARNING "[peripheral] Dependency 'log' not found.") endif() if(TARGET ringbuffer) target_link_libraries(peripheral PUBLIC ringbuffer) else() message(WARNING "[peripheral] Dependency 'ringbuffer' not found.") endif()