mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-12 03:27:55 +00:00
fix: bundle python runtime for macos plugin tests
This commit is contained in:
@@ -29,6 +29,19 @@ if (WIN32)
|
|||||||
COMMENT "Copying Python runtime for slic3rutils plugin host API tests"
|
COMMENT "Copying Python runtime for slic3rutils plugin host API tests"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
|
elseif (APPLE)
|
||||||
|
target_link_options(${_TEST_NAME}_tests PRIVATE
|
||||||
|
"LINKER:-rpath,@executable_path/python/lib")
|
||||||
|
|
||||||
|
add_custom_command(TARGET ${_TEST_NAME}_tests POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E rm -rf
|
||||||
|
"$<TARGET_FILE_DIR:${_TEST_NAME}_tests>/python"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
"${CMAKE_PREFIX_PATH}/libpython"
|
||||||
|
"$<TARGET_FILE_DIR:${_TEST_NAME}_tests>/python"
|
||||||
|
COMMENT "Copying Python runtime for macOS plugin host API tests"
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
orcaslicer_discover_tests(${_TEST_NAME}_tests)
|
orcaslicer_discover_tests(${_TEST_NAME}_tests)
|
||||||
|
|||||||
Reference in New Issue
Block a user