summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_sources/RelativePathInInterface.cmake
blob: 25b22ddc6a01032b819039bc8c4a9cd00b9a8bb4 (plain)
1
2
3
4
5
6
7
8
9
10
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)