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

cmake_minimum_required(VERSION 3.0)

project(SourcesProperty)

add_library(iface INTERFACE)
set_property(TARGET iface PROPERTY INTERFACE_SOURCES iface.cpp)

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

set_property(TARGET SourcesProperty APPEND PROPERTY SOURCES prop.cpp)