Skip to content

Commit

Permalink
Plugin: add INSTALL_RPATH in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Mar 13, 2024
1 parent b3a0819 commit 88bb8e5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion Src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,4 @@ INSTALL_FILE(SOURCES ${CMAKE_SOURCE_DIR}/Resource/db/database.sql
COMPONENT Runtime)

message(STATUS "LIBYUV:${YUV_FOUND}")
message(STATUS "log4cplus:${log4cplus_FOUND}")
message(STATUS "Build PERFORMANCE:${BUILD_PERFORMANCE}")
2 changes: 1 addition & 1 deletion Src/FactoryFace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CFactoryFace::CFactoryFace(QObject *parent): QObject(parent),
filters << "*PluginFace*.so";
#endif
FindPlugins(szPath, filters);

SetLibType(QString(), false);
}

Expand Down
5 changes: 5 additions & 0 deletions Src/Plugins/LibFacedetection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ ADD_PLUGIN_TARGET(NAME ${PROJECT_NAME}
OUTPUT_DIR ${FACE_RECOGNIZER_PLUGS_BINARY_DIR}/Face
INSTALL_DIR ${INSTALL_PATH}
VERSION ${FaceRecognizer_VERSION})

SET_TARGET_PROPERTIES(${PROJECT_NAME}
PROPERTIES INSTALL_RPATH
"$ORIGIN;$ORIGIN/../../lib;$ORIGIN/../../lib/${CMAKE_LIBRARY_ARCHITECTURE}"
)
5 changes: 5 additions & 0 deletions Src/Plugins/Seeta/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ ADD_PLUGIN_TARGET(NAME ${PROJECT_NAME}
INSTALL_DIR ${INSTALL_PATH}
VERSION ${FaceRecognizer_VERSION})

SET_TARGET_PROPERTIES(${PROJECT_NAME}
PROPERTIES INSTALL_RPATH
"$ORIGIN;$ORIGIN/../../lib;$ORIGIN/../../lib/${CMAKE_LIBRARY_ARCHITECTURE}"
)

# Install model files
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/model/Seeta")
if(ENABLE_DOWNLOAD_MODULE)
Expand Down
5 changes: 5 additions & 0 deletions Src/Plugins/ncnn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ ADD_PLUGIN_TARGET(NAME ${PROJECT_NAME}
INSTALL_DIR ${INSTALL_PATH}
VERSION ${FaceRecognizer_VERSION})

SET_TARGET_PROPERTIES(${PROJECT_NAME}
PROPERTIES INSTALL_RPATH
"$ORIGIN;$ORIGIN/../../lib;$ORIGIN/../../lib/${CMAKE_LIBRARY_ARCHITECTURE}"
)

# Install model files
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/model/ncnn")
if(ENABLE_DOWNLOAD_MODULE)
Expand Down

0 comments on commit 88bb8e5

Please sign in to comment.