deps script for Mac OS, XCode support fix

This commit is contained in:
Vojtech Kral 2018-11-30 20:52:45 +01:00
parent 693a4168f8
commit 6693b2102d
6 changed files with 198 additions and 66 deletions

View file

@ -163,6 +163,13 @@ if (MSVC)
VERBATIM
)
endif ()
elseif (XCODE)
# Because of Debug/Release/etc. configurations (similar to MSVC) the slic3r binary is located in an extra level
add_custom_command(TARGET slic3r POST_BUILD
COMMAND ln -sf "${SLIC3R_RESOURCES_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/resources"
COMMENT "Symlinking the resources directory into the build tree"
VERBATIM
)
else ()
add_custom_command(TARGET slic3r POST_BUILD
COMMAND ln -sf "${SLIC3R_RESOURCES_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/../resources"