diff --git a/setup.py b/setup.py index 03b27a2b..67e6bb25 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ if 'darwin' in sys.platform: '-DNG_INSTALL_DIR_BIN=bin', '-DNG_INSTALL_DIR_CMAKE=netgen/cmake', '-DNG_INSTALL_DIR_INCLUDE=netgen/include', + '-DNG_INSTALL_DIR_RES=share', ] elif 'win' in sys.platform: cmake_args += [ diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a0783363..55fcd1ee 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,2 +1,7 @@ add_subdirectory(catch) add_subdirectory(pytest) + +# this code goes here, because tests is the last add_subdirectory (otherwise it gets executed too early) +if(APPLE AND BUILD_FOR_CONDA) + install(CODE "execute_process(COMMAND sh -c \"codesign --force -s - netgen/*.so netgen/*.dylib pyngcore/*.so\" WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})") +endif(APPLE AND BUILD_FOR_CONDA)