quickfuture icon indicating copy to clipboard operation
quickfuture copied to clipboard

moc warning: quickfuture.h:0: Note: No relevant classes found. No output generated.

Open twang-swt opened this issue 4 years ago • 0 comments

Problem

when moc processes src/quickfuture.h, it outputs a warning

quickfuture.h:0: Note: No relevant classes found. No output generated.

Steps

Use the library by including this repo as a subdirectory then

include(quickfuture/quickfuture.pri)

Reason

The Qt stuff in this file is guarded by #ifdef QUICK_FUTURE_BUILD_PLUGIN

Solution

Remove src/quickfuture.h from HEADERS list in src/src.pri. This change only affects using the library by

include(quickfuture/quickfuture.pri)

This does not affect building the project as a plugin, because src/quickfuture.h is still listed in HEADERS in the plugin's .pro file

twang-swt avatar Nov 04 '21 00:11 twang-swt