summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-27 12:07:51 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-27 19:26:45 +0100
commit638ac41293da9c6ae5e4ccb9baa7819c772ba9dd (patch)
tree0d0aa42f2fbbacc42b874d460c0e9a796a93c271 /tests
parentf65abc63441bf821c4e4619b842c74b6d5074cbd (diff)
CMake: Fix painting examples to build as standalone projectsHEADdev
The examples use an intermediate object library to avoid duplicate file compilation. The examples worked when built as part of Qt because the shared directory was always added, and Qt::OpenGL is available implicitly. Change each project to add_subdirectory(../shared) if the object library is not available, thus making the examples build as standalone projects. Call find_package inside the shared project, to ensure the Qt packages are found. Create an alias called 'painting_shared::painting_shared' and link against that to ensure that any failure is caught at configure time rather than build time. Adapt the pathstroke example to use the object library. Comment out the code for the OpenGL scopes, because it's handled by the object library. Make sure the OpenGL dependency is public. Make sure to run moc and compile the OpenGL specific files as well. Task-number: QTBUG-87444 Change-Id: Ib0ecb68948581c5267ca04f19d8043fa44ff3d54 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions