summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/TargetSources/RelativePathInInterface.cmake')
-rw-r--r--Tests/RunCMake/TargetSources/RelativePathInInterface.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake b/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake
new file mode 100644
index 0000000..0d3e9a4
--- /dev/null
+++ b/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake
@@ -0,0 +1,10 @@
+cmake_policy(SET CMP0076 NEW)
+
+add_library(iface INTERFACE)
+target_sources(iface INTERFACE empty_1.cpp)
+
+get_property(iface_sources TARGET iface PROPERTY INTERFACE_SOURCES)
+message(STATUS "iface: ${iface_sources}")
+
+add_executable(main main.cpp)
+target_link_libraries(main iface)