summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetObjects/NoTarget.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/TargetObjects/NoTarget.cmake')
-rw-r--r--Tests/RunCMake/TargetObjects/NoTarget.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetObjects/NoTarget.cmake b/Tests/RunCMake/TargetObjects/NoTarget.cmake
new file mode 100644
index 0000000..268577d
--- /dev/null
+++ b/Tests/RunCMake/TargetObjects/NoTarget.cmake
@@ -0,0 +1,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)