diff options
author | Vojtech Kral <vojtech@kral.hk> | 2018-11-30 22:52:45 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2018-12-03 12:21:06 +0300 |
commit | 6693b2102d914c4af36e62b5cc97455ccb521567 (patch) | |
tree | a39fd27e24690c2b02273995fd3d794544247e32 /src/CMakeLists.txt | |
parent | 693a4168f84e86a138d3b4206619a9f433126a02 (diff) |
deps script for Mac OS, XCode support fix
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b60319611..d714eb91a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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" |