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
551 B
21 lines
551 B
|
3 days ago
|
cmake_minimum_required(VERSION 3.10)
|
||
|
|
|
||
|
|
set(COMMON_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../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 common)
|
||
|
|
target_link_libraries(list INTERFACE common)
|
||
|
|
else()
|
||
|
|
message(WARNING "[list] Dependency 'common' not found.")
|
||
|
|
endif()
|
||
|
|
|
||
|
|
if(TARGET log)
|
||
|
|
target_link_libraries(list INTERFACE log)
|
||
|
|
else()
|
||
|
|
message(WARNING "[list] Dependency 'log' not found.")
|
||
|
|
endif()
|