diff options
Diffstat (limited to 'Tests/ConfigSources/CMakeLists.txt')
-rw-r--r-- | Tests/ConfigSources/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/ConfigSources/CMakeLists.txt b/Tests/ConfigSources/CMakeLists.txt index 68a4233..c272257 100644 --- a/Tests/ConfigSources/CMakeLists.txt +++ b/Tests/ConfigSources/CMakeLists.txt @@ -3,7 +3,15 @@ cmake_minimum_required(VERSION 3.0) project(ConfigSources) +add_library(iface INTERFACE) +set_property(TARGET iface PROPERTY INTERFACE_SOURCES + iface_src.cpp + $<$<CONFIG:Debug>:iface_debug_src.cpp> + $<$<CONFIG:Release>:does_not_exist.cpp> +) + add_executable(ConfigSources $<$<CONFIG:Debug>:main.cpp> $<$<CONFIG:Release>:does_not_exist.cpp> ) +target_link_libraries(ConfigSources iface) |