1 2 3 4
enable_language(C) add_library(lib SHARED empty.c) target_link_libraries(lib PRIVATE "$<LINK_LIBRARY>")