enable_language(C) link_libraries("$>") add_library(lib SHARED empty.c) target_link_libraries(lib PRIVATE "$>")