1 2 3 4 5
add_library(iface INTERFACE) target_link_libraries(iface INTERFACE External::Library) add_library(foo empty.cpp) target_link_libraries(foo iface)