]> git.lyx.org Git - lyx.git/commitdiff
cmake build with qt6 (macos) did not include "plugins"
authorP. De Visschere <pdvisschere@edpnet.be>
Sun, 31 Dec 2023 14:30:12 +0000 (15:30 +0100)
committerKornel Benko <kornel@lyx.org>
Tue, 2 Apr 2024 07:22:53 +0000 (09:22 +0200)
development/cmake/post_install/CMakeLists.txt

index f39bb5a763ad760729e70b39be39ef6f6d0a09a6..56c552e4d0c3022d47a258271b2a7ac2f9972a3d 100644 (file)
@@ -48,6 +48,11 @@ if(LYX_BUNDLE)
        install_qt_plugin("${QtScope}::QCocoaIntegrationPlugin")
     endif()
 
+    if (APPLE AND LYX_USE_QT MATCHES "QT6")
+      # With QT6, just copy all the plugins
+      file(GLOB QT_PLUGIN_DIRECTORIES "${QT_PLUGINS_DIR}/*")
+      install(DIRECTORY ${QT_PLUGIN_DIRECTORIES} DESTINATION "${qtplugin_dest_dir}/plugins/" COMPONENT Runtime)
+    endif()
     # Install code does the following:
     # - Creates the qt.conf file
     # - install the platform specific plugins (with Qt5)