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.
21 lines
605 B
21 lines
605 B
cmake_minimum_required(VERSION 3.10)
|
|
|
|
get_filename_component(TARGET_NAME "${CMAKE_CURRENT_SOURCE_DIR}" NAME)
|
|
|
|
if(TARGET list)
|
|
target_link_libraries(${TARGET_NAME} INTERFACE list)
|
|
else()
|
|
message(FATAL_ERROR "[${TARGET_NAME}] Dependency 'list' not found.")
|
|
endif()
|
|
|
|
if(TARGET log)
|
|
target_link_libraries(${TARGET_NAME} INTERFACE log)
|
|
else()
|
|
message(WARNING "[${TARGET_NAME}] Dependency 'log' not found.")
|
|
endif()
|
|
|
|
if(TARGET ringbuffer)
|
|
target_link_libraries(${TARGET_NAME} INTERFACE ringbuffer)
|
|
else()
|
|
message(FATAL_ERROR "[${TARGET_NAME}] Dependency 'ringbuffer' not found.")
|
|
endif()
|