summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_sources/RelativePathInInterface.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-10-19 19:42:11 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-10-19 20:59:10 (GMT)
commit7d07569e4daa861f06546ae423b115068d3f6613 (patch)
tree7ad3bedf7546f39b4dfbbc475fc7bc297e119aef /Tests/RunCMake/target_sources/RelativePathInInterface.cmake
parent52ea22ca65d86627e9ab571f2a87d4a952a7d85e (diff)
downloadCMake-7d07569e4daa861f06546ae423b115068d3f6613.zip
CMake-7d07569e4daa861f06546ae423b115068d3f6613.tar.gz
CMake-7d07569e4daa861f06546ae423b115068d3f6613.tar.bz2
Tests/RunCMake: Merge TargetSources into target_sources
Diffstat (limited to 'Tests/RunCMake/target_sources/RelativePathInInterface.cmake')
-rw-r--r--Tests/RunCMake/target_sources/RelativePathInInterface.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_sources/RelativePathInInterface.cmake b/Tests/RunCMake/target_sources/RelativePathInInterface.cmake
new file mode 100644
index 0000000..25b22dd
--- /dev/null
+++ b/Tests/RunCMake/target_sources/RelativePathInInterface.cmake
@@ -0,0 +1,11 @@
+cmake_policy(SET CMP0076 NEW)
+enable_language(CXX)
+
+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)