summaryrefslogtreecommitdiffstats
path: root/Tests/SourcesProperty/CMakeLists.txt
blob: d1c35d8011afd9e4e65deca845b035eab891a292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

cmake_minimum_required(VERSION 3.0)

project(SourcesProperty)

add_library(iface INTERFACE)
set_property(TARGET iface PROPERTY INTERFACE_SOURCES
  "${CMAKE_CURRENT_SOURCE_DIR}/iface.cpp"
)

add_executable(SourcesProperty main.cpp)
target_link_libraries(SourcesProperty iface)

set_property(TARGET SourcesProperty APPEND PROPERTY SOURCES prop.cpp)