2014-05-15 13:32:30 +04:00
|
|
|
|
|
|
|
set(genexvar $<COMPILE_FEATURES:cxx_final>)
|
|
|
|
|
|
|
|
add_custom_target(copy_target
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp" "${CMAKE_CURRENT_BINARY_DIR}/copied_file${genexvar}.txt"
|
|
|
|
)
|
2014-12-22 18:34:12 +03:00
|
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/copied_file0.cpp" PROPERTY GENERATED 1)
|
|
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/copied_file1.cpp" PROPERTY GENERATED 1)
|
2014-05-15 13:32:30 +04:00
|
|
|
|
|
|
|
add_library(empty "${CMAKE_CURRENT_BINARY_DIR}/copied_file${genexvar}.cpp")
|