Install library so into python module dir

We do the same a PySide and install the target library into the python
module this. This way the bindings can work without need to export
system paths.
This commit is contained in:
Renato Araujo Oliveira Filho
2021-09-24 12:34:41 -03:00
committed by Sergio Martins
parent dc1e5103e2
commit 1826d68841
3 changed files with 17 additions and 2 deletions

View File

@@ -129,6 +129,7 @@ macro(CREATE_PYTHON_BINDINGS
PREFIX ""
OUTPUT_NAME ${MODULE_NAME}
LIBRARY_OUTPUT_DIRECTORY ${MODULE_OUTPUT_DIR}
INSTALL_RPATH "$ORIGIN"
)
if(WIN32)