qtdoc/examples/demos/documentviewer/plugins
Kai Köhne e31802fb15 documentviewer: Fix deployment for macOS, Windows, Linux
Adapt the logic to install and detect especially the
plugins libs:

* Do not just compile them into the app build folder, but
  keep the libs separate under the 'plugins' direcory
* At installation time, follow the logic of *deployqt
  for Qt plugins, and store them in CMAKE_INSTALL_PREFIX/plugins
  (Linux, Windows) or Document Viewer.app/Contents/Plugins
  (macOS).

Unfortunately, this all requires different look ups at runtime for
all operating systems. For macOS and Windows, we furthermore need
to check both for valid paths with an installed build, and an
un-installed build.

While at it, move the install logic to app/CMakeLists.txt, so that
there is less repetition.

An alternative approach would be to calculate the relative paths
at configure time, and either pass on command line or in a created
header file. Anyhow, the current approach is more compact.

Pick-to: 6.10
Fixes: QTBUG-138476
Change-Id: I467d3bd4e14ef6b8b747bceb7177837e2edd3b8c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2025-07-15 16:49:02 +02:00
..
Q3DViewer documentviewer: Fix deployment for macOS, Windows, Linux 2025-07-15 16:49:02 +02:00
imageviewer documentviewer: Fix deployment for macOS, Windows, Linux 2025-07-15 16:49:02 +02:00
jsonviewer documentviewer: Fix deployment for macOS, Windows, Linux 2025-07-15 16:49:02 +02:00
pdfviewer documentviewer: Fix deployment for macOS, Windows, Linux 2025-07-15 16:49:02 +02:00
txtviewer documentviewer: Fix deployment for macOS, Windows, Linux 2025-07-15 16:49:02 +02:00
CMakeLists.txt documentviewer: Make q3dviewer path capitalized 2025-05-19 11:34:04 +02:00