mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-13 18:00:09 -06:00
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
11 lines
319 B
CMake
11 lines
319 B
CMake
add_custom_command(
|
|
OUTPUT hello.copy.c
|
|
COMMAND "${CMAKE_COMMAND}" -E copy
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/hello.c"
|
|
hello.copy.c
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
|
)
|
|
add_custom_target(copy ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/hello.copy.c")
|
|
|
|
include(CheckNoPrefixSubDir.cmake)
|