KDAB / GammaRay

GammaRay is a tool to poke around in a Qt-application and also to manipulate the application to some extent.
https://www.kdab.com/gammaray
Other
1.63k stars 283 forks source link

Why GAMMARAY_PROBE_ONLY_BUILD implies skipping install? #932

Open Kentzo opened 10 months ago

Kentzo commented 10 months ago

What is the principal reason for skipping installation of headers, pri and cmake files in probe-only builds? In my fork I allowed this installation and nothing bad happened, generated files seem appropriate.

Take a look at https://github.com/KDAB/GammaRay/pull/929, I wonder if this extra variable is necessary at all.

Kentzo commented 10 months ago

My particular problem is that header for the static probe will never get installed.

Kentzo commented 10 months ago

It's feasible to resolve this installation issue + provide better linking experience for static plugins that avoids manual [Q_IMPORT_PLUGIN](https://doc.qt.io/qt-6/qtplugin.html#Q_IMPORT_PLUGIN) (at least for Qt6 users).

I will make a PR once all preliminary changes get merged into the project.