pip - sign libs on macos, fix res install path

This commit is contained in:
Matthias Hochsteger 2022-03-11 12:48:52 +01:00
parent eea8054af6
commit ac0326ce91
2 changed files with 6 additions and 0 deletions

View File

@ -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 += [

View File

@ -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)