summaryrefslogtreecommitdiffstats
path: root/Tests/ConfigSources/CMakeLists.txt
blob: c272257ca3c883057aacab9b5b071200dd29b3a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

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)