2014-02-13 20:25:00 +04:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
|
|
|
project(ConfigSources)
|
|
|
|
|
2014-02-13 23:52:21 +04:00
|
|
|
add_library(iface INTERFACE)
|
|
|
|
set_property(TARGET iface PROPERTY INTERFACE_SOURCES
|
2014-11-27 03:04:33 +03:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/iface_src.cpp"
|
|
|
|
"$<$<CONFIG:Debug>:${CMAKE_CURRENT_SOURCE_DIR}/iface_debug_src.cpp>"
|
|
|
|
"$<$<CONFIG:Release>:${CMAKE_CURRENT_SOURCE_DIR}/does_not_exist.cpp>"
|
2014-02-13 23:52:21 +04:00
|
|
|
)
|
|
|
|
|
2014-02-13 20:25:00 +04:00
|
|
|
add_executable(ConfigSources
|
|
|
|
$<$<CONFIG:Debug>:main.cpp>
|
|
|
|
$<$<CONFIG:Release>:does_not_exist.cpp>
|
|
|
|
)
|
2014-02-13 23:52:21 +04:00
|
|
|
target_link_libraries(ConfigSources iface)
|