1 2 3 4 5 6
add_library(iface INTERFACE) target_sources(iface INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/empty_1.cpp") install(TARGETS iface EXPORT exp) install(EXPORT exp DESTINATION cmake)