2014-02-13 23:52:21 +04:00
|
|
|
|
|
|
|
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)
|
2013-07-08 22:18:42 +04:00
|
|
|
|
|
|
|
set_property(TARGET SourcesProperty APPEND PROPERTY SOURCES prop.cpp)
|