From cbc0c4e31da46e157f1ea8b9b0a1741b62c875de Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 6 Jan 2016 10:39:55 -0800 Subject: [PATCH] rename console packaging target --- .../SymlinkOrCopyDirectoryBesideTarget.cmake | 20 +++++++++---------- console/CMakeLists.txt | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cmake/macros/SymlinkOrCopyDirectoryBesideTarget.cmake b/cmake/macros/SymlinkOrCopyDirectoryBesideTarget.cmake index fe6f5b671e..37a7a9caa0 100644 --- a/cmake/macros/SymlinkOrCopyDirectoryBesideTarget.cmake +++ b/cmake/macros/SymlinkOrCopyDirectoryBesideTarget.cmake @@ -1,5 +1,5 @@ # -# CopyDirectoryBesideTarget.cmake +# CopyDirectoryBesideTarget.cmake # cmake/macros # # Created by Stephen Birarda on 04/30/15. @@ -10,22 +10,22 @@ # macro(SYMLINK_OR_COPY_DIRECTORY_BESIDE_TARGET _SHOULD_SYMLINK _DIRECTORY _DESTINATION) - + # remove the current directory add_custom_command( TARGET ${TARGET_NAME} POST_BUILD COMMAND "${CMAKE_COMMAND}" -E remove_directory $/${_DESTINATION} ) - + if (${_SHOULD_SYMLINK}) - + # first create the destination add_custom_command( TARGET ${TARGET_NAME} POST_BUILD COMMAND "${CMAKE_COMMAND}" -E make_directory $/${_DESTINATION} ) - + # the caller wants a symlink, so just add a command to symlink all contents of _DIRECTORY # in the destination - we can't simply create a symlink for _DESTINATION # because the remove_directory call above would delete the original files @@ -35,20 +35,20 @@ macro(SYMLINK_OR_COPY_DIRECTORY_BESIDE_TARGET _SHOULD_SYMLINK _DIRECTORY _DESTIN foreach(_ITEM ${_DIR_ITEMS}) # get the filename for this item get_filename_component(_ITEM_FILENAME ${_ITEM} NAME) - + # add the command to symlink this item add_custom_command( TARGET ${TARGET_NAME} POST_BUILD COMMAND "${CMAKE_COMMAND}" -E create_symlink ${_ITEM} $/${_DESTINATION}/${_ITEM_FILENAME} - ) - endforeach() + ) + endforeach() else () # copy the directory add_custom_command( - TARGET ${TARGET_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_directory ${_DIRECTORY} + TARGET ${TARGET_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory ${_DIRECTORY} $/${_DESTINATION} ) endif () diff --git a/console/CMakeLists.txt b/console/CMakeLists.txt index 43933af410..6f813489a1 100644 --- a/console/CMakeLists.txt +++ b/console/CMakeLists.txt @@ -1,4 +1,4 @@ -set(TARGET_NAME package-console) +set(TARGET_NAME packaged-console) if (PRODUCTION_BUILD) set(PRODUCTION_OPTION "--production")