diff --git a/CMakeLists.txt b/CMakeLists.txt index 998aa0d..475ed07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,8 @@ set_target_properties( babylon PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${BABYLON_LIB_INSTALL_DIR} + BUILD_WITH_INSTALL_RPATH TRUE + INSTALL_RPATH "$ORIGIN" ) if(BABYLON_BUILD_SOURCE OR ANDROID)