diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-10-19 19:42:11 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-10-19 20:59:10 (GMT) |
commit | 7d07569e4daa861f06546ae423b115068d3f6613 (patch) | |
tree | 7ad3bedf7546f39b4dfbbc475fc7bc297e119aef /Tests/RunCMake/target_sources/OriginDebug.cmake | |
parent | 52ea22ca65d86627e9ab571f2a87d4a952a7d85e (diff) | |
download | CMake-7d07569e4daa861f06546ae423b115068d3f6613.zip CMake-7d07569e4daa861f06546ae423b115068d3f6613.tar.gz CMake-7d07569e4daa861f06546ae423b115068d3f6613.tar.bz2 |
Tests/RunCMake: Merge TargetSources into target_sources
Diffstat (limited to 'Tests/RunCMake/target_sources/OriginDebug.cmake')
-rw-r--r-- | Tests/RunCMake/target_sources/OriginDebug.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_sources/OriginDebug.cmake b/Tests/RunCMake/target_sources/OriginDebug.cmake new file mode 100644 index 0000000..d40a1d8 --- /dev/null +++ b/Tests/RunCMake/target_sources/OriginDebug.cmake @@ -0,0 +1,20 @@ + +cmake_minimum_required(VERSION 3.0) + +project(OriginDebug) + +set(CMAKE_DEBUG_TARGET_PROPERTIES SOURCES) + +add_library(iface INTERFACE) +set_property(TARGET iface PROPERTY INTERFACE_SOURCES + "${CMAKE_CURRENT_SOURCE_DIR}/empty_1.cpp" +) + +add_library(OriginDebug empty_2.cpp) +target_link_libraries(OriginDebug iface) + +set_property(TARGET OriginDebug APPEND PROPERTY SOURCES + empty_3.cpp +) + +target_sources(OriginDebug PRIVATE empty_4.cpp) |