CMake/Tests/RunCMake/TargetSources/ExportBuild.cmake

6 lines
174 B
CMake

add_library(iface INTERFACE)
target_sources(iface INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/empty_1.cpp")
export(TARGETS iface FILE ${CMAKE_CURRENT_BINARY_DIR}/targets.cmake)