You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
319 B
13 lines
319 B
3 years ago
|
set(CMAKE_POLICY_WARNING_CMP0112 TRUE)
|
||
|
|
||
|
enable_language (C)
|
||
|
|
||
|
add_executable (exec1 empty.c)
|
||
|
|
||
|
add_custom_target(copyFile
|
||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||
|
"${CMAKE_CURRENT_SOURCE_DIR}/empty.c"
|
||
|
"$<TARGET_FILE_DIR:exec1>/$<TARGET_FILE_BASE_NAME:exec1>_e.c"
|
||
|
)
|
||
|
add_dependencies(exec1 copyFile)
|