vcpkg/ports/rtabmap/fix_qt_deploy_plugins.patch
matlabbe 21c801ea47
[rtabmap] update to 0.21.0 (#30254)
* updated rtabmap port

* Update vcpkg.json

* Addressing review comments, fixed missing deployed qt plugins, fixed CI error

* applied format-manifest

* ran  x-add-version

* Making octomap dependency optional because it doesn't work for debug build (see https://github.com/introlab/rtabmap/issues/995)

* updated upstream version, fixed debug config

* updated versions

* fixing version

* Added explicit depedency to qtbase. Added optional dependencies openni2, realsense2, k4w2

* Updated versions

* Updated versions

* cleanup versions

* cleanup all versions

* Applying format.diff from ci

* overwrite version

* qtbase: not using defaults

* updated versions sha

* added --trace-expand

* Explicitly set autouic to OFF

* Update rtabmap.json

* removing cmake trace debug

* updated versions

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-04-02 20:54:56 -07:00

21 lines
745 B
Diff

diff --git a/app/src/CMakeLists.txt b/app/src/CMakeLists.txt
index f0cef72c..f007eb83 100644
--- a/app/src/CMakeLists.txt
+++ b/app/src/CMakeLists.txt
@@ -53,7 +53,14 @@ ENDIF()
INSTALL(TARGETS rtabmap_app
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
-
+
+qt_generate_deploy_app_script(
+ TARGET rtabmap_app
+ FILENAME_VARIABLE deploy_script
+ NO_UNSUPPORTED_PLATFORM_ERROR
+)
+install(SCRIPT ${deploy_script})
+
IF(APPLE AND BUILD_AS_BUNDLE)
INSTALL(CODE "execute_process(COMMAND ln -s \"../MacOS/${CMAKE_BUNDLE_NAME}\" ${PROJECT_NAME}
WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin)")