summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetObjects/NoTarget.cmake
blob: 268577d50c9246a4eb89dc6ad53baaa07fa92f41 (plain)
1
2
3
4
5
6
7
add_library(iface INTERFACE)
target_sources(iface INTERFACE $<TARGET_OBJECTS:NoTarget>)

file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test_output CONTENT $<TARGET_OBJECTS:NoTarget>)
file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test_output2 CONTENT $<TARGET_PROPERTY:iface,INTERFACE_SOURCES>)

install(FILES $<TARGET_OBJECTS:NoTarget> DESTINATION objects)