2014-02-13 23:52:21 +04:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
|
|
|
project(SourcesProperty)
|
|
|
|
|
|
|
|
add_library(iface INTERFACE)
|
2014-11-27 03:04:33 +03:00
|
|
|
set_property(TARGET iface PROPERTY INTERFACE_SOURCES
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/iface.cpp"
|
|
|
|
)
|
2014-02-13 23:52:21 +04:00
|
|
|
|
|
|
|
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)
|