diff options
Diffstat (limited to 'cmake/modules/CopyDir.cmake')
-rw-r--r-- | cmake/modules/CopyDir.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/modules/CopyDir.cmake b/cmake/modules/CopyDir.cmake index 319b899f..b25a80b1 100644 --- a/cmake/modules/CopyDir.cmake +++ b/cmake/modules/CopyDir.cmake @@ -15,3 +15,17 @@ function(llvm_copy target to from) COMMAND ${CMAKE_COMMAND} -E copy ${from} ${to} ) endfunction() + +function(llvm_create_symlink target to from) + add_custom_command( + TARGET ${target} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E create_symlink ${from} ${to} + ) +endfunction() + +function(llvm_make_directory target) + add_custom_command( + TARGET ${target} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E make_directory ${ARGN} + ) +endfunction() |