Files
cmake/Tests/RunCMake/add_custom_command/LongCommentAutoGenerated.cmake
T

9 lines
296 B
CMake

file(GLOB_RECURSE FILES RELATIVE "${CMAKE_ROOT}" "${CMAKE_ROOT}/Modules/*")
add_custom_command(
OUTPUT ${FILES}
COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_ROOT}/Modules" "${CMAKE_CURRENT_BINARY_DIR}/Modules"
)
add_custom_target(LongCommentAutoGenerated ALL DEPENDS ${FILES})