cmake/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake

11 lines
280 B
CMake
Raw Normal View History

2018-10-28 12:09:07 +01:00
cmake_policy(SET CMP0076 NEW)
2015-04-27 22:25:09 +02:00
add_library(iface INTERFACE)
target_sources(iface INTERFACE empty_1.cpp)
2018-10-28 12:09:07 +01:00
get_property(iface_sources TARGET iface PROPERTY INTERFACE_SOURCES)
message(STATUS "iface: ${iface_sources}")
2015-04-27 22:25:09 +02:00
add_executable(main main.cpp)
target_link_libraries(main iface)