Files
CMake/Tests/RunCMake/ExportPackageInfo/ReferencesWronglyImportedTarget.cmake
Matthew Woehlke c8ccd5a9e3 export: Add build-tree CPS support
Add Common Package Specification support to export(EXPORT).
2025-02-25 15:42:23 -05:00

8 lines
188 B
CMake

add_library(bar INTERFACE IMPORTED)
add_library(foo INTERFACE)
target_link_libraries(foo INTERFACE bar)
install(TARGETS foo EXPORT foo DESTINATION .)
export(EXPORT foo PACKAGE_INFO foo)