|
@@ -72,6 +72,10 @@ pybind11_add_module(openfhe
|
|
|
src/lib/binfhe/binfhecontext_wrapper.cpp
|
|
src/lib/binfhe/binfhecontext_wrapper.cpp
|
|
|
src/lib/pke/serialization.cpp
|
|
src/lib/pke/serialization.cpp
|
|
|
)
|
|
)
|
|
|
|
|
+# The next line ensures that the installed openfhe module can find its shared library dependencies
|
|
|
|
|
+# in the 'lib/' subdirectory relative to itself without requiring LD_LIBRARY_PATH.
|
|
|
|
|
+target_link_options(openfhe PRIVATE "-Wl,-rpath=$ORIGIN/lib" "-Wl,--disable-new-dtags")
|
|
|
|
|
+
|
|
|
### Python installation
|
|
### Python installation
|
|
|
# Allow the user to specify the path to Python executable (if not provided, find it)
|
|
# Allow the user to specify the path to Python executable (if not provided, find it)
|
|
|
option(PYTHON_EXECUTABLE_PATH "Path to Python executable" "")
|
|
option(PYTHON_EXECUTABLE_PATH "Path to Python executable" "")
|
|
@@ -103,5 +107,5 @@ else()
|
|
|
endif()
|
|
endif()
|
|
|
message("***** INSTALL IS AT ${Python_Install_Location}; to change, run cmake with -DCMAKE_INSTALL_PREFIX=/your/path")
|
|
message("***** INSTALL IS AT ${Python_Install_Location}; to change, run cmake with -DCMAKE_INSTALL_PREFIX=/your/path")
|
|
|
install(TARGETS openfhe LIBRARY DESTINATION ${Python_Install_Location})
|
|
install(TARGETS openfhe LIBRARY DESTINATION ${Python_Install_Location})
|
|
|
-install(FILES ${CMAKE_SOURCE_DIR}/__init__.py DESTINATION ${Python_Install_Location})
|
|
|
|
|
|
|
+install(FILES ${CMAKE_SOURCE_DIR}/src/__init__.py DESTINATION ${Python_Install_Location})
|
|
|
|
|
|