summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_opengl_lib
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-04-26 14:54:57 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-04-26 19:35:55 +0200
commit2fccea3b70d8d88ed49cac1c228362a4cf01bb15 (patch)
treef1d33f1ebe58870bcc9e98da163ab664bb0c4151 /tests/auto/cmake/test_opengl_lib
parent31ee3c84a78afa67eeb4e4b6da5a8181ea62c387 (diff)
CMake: Fix tst_qaddpreroutine to work with static builds
DEFAULT_IF needs to be true so that in a static build the built plugin is automatically linked into the test executable using the special static plugin per-repo behavior in qt_internal_add_executable. The QtPostProcess routines are not executed for this test project because we don't use qt_build_repo. This means that no QtFooPluginCMakeConfig.cmake file is generated and thus there's no point in using qt6_import_plugins because the pulic plugin genexes won't know about this target anyway. Explicitly set the CLASS_NAME so that the name expected by the Q_IMPORT_PLUGIN macro matches the name of the plugin instance that moc generates in QT_MOC_EXPORT_PLUGIN. Amends 22e967c3049608f82abd32a0beb0b4b36ee134bf Task-number: QTBUG-87580 Task-number: QTBUG-90341 Pick-to: 6.1 6.0 Change-Id: I5ef361e7e2cebc46b35310c679f15c84cd61b4a5 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/cmake/test_opengl_lib')
0 files changed, 0 insertions, 0 deletions