add_library(bar SHARED bar.c)
target_link_libraries(bar foo)
target_link_libraries(bar LINK_INTERFACE_LIBRARIES foo)
