Similar to bug #47336 but for static variant of Qt on OS X platform.
Next libraries should be set to INTERFACE_LINK_LIBRARIES property of Qt5::Widgets target to avoid repetition of this code in every user's application.
3rd party libraries:
Qt imported libraries:
Qt libraries (+ debug variant):
Additionaly extra source file have to be added with one line of C++ code:
I guess this code can be compiled into new library (or may be there already is such library?) or added to target using INTERFACE_SOURCES property (available since CMake 3.1).