summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/target_sources/RelativePathInSubdirInterface.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/target_sources/RelativePathInSubdirInterface.cmake')
-rw-r--r--Tests/RunCMake/target_sources/RelativePathInSubdirInterface.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_sources/RelativePathInSubdirInterface.cmake b/Tests/RunCMake/target_sources/RelativePathInSubdirInterface.cmake
new file mode 100644
index 0000000000..6a4e2006d2
--- /dev/null
+++ b/Tests/RunCMake/target_sources/RelativePathInSubdirInterface.cmake
@@ -0,0 +1,12 @@
+cmake_policy(SET CMP0076 NEW)
+enable_language(CXX)
+
+add_library(iface INTERFACE)
+
+add_subdirectory(RelativePathInSubdirInterface)
+
+get_property(iface_sources TARGET iface PROPERTY INTERFACE_SOURCES)
+message(STATUS "iface: ${iface_sources}")
+
+add_executable(main main.cpp)
+target_link_libraries(main iface)