I am developing a plugin for Maya
which comes with its own custom version of Qt library (including the moc
). I downloaded the exact Qt
version Maya
uses and tried the following:
set(CMAKE_AUTOMOC ON)
find_package(Qt5Widgets)
Now this works but only partially. The plugin causes Maya
to crash randomly due to (I am assuming) subtle differences in Maya's
custom Qt
library vs. the official Qt
library - even though I have made sure I match the the Qt
version numbers.
My question then is, can I somehow get CMAKE_AUTOMOC
to use the moc.exe
(and others) that ships with Maya instead of Qt's
own?
Or to phrase the question more generically, can I get CMAKE_AUTOMOC
to work with a customized version of Qt and its moc?