Currently, I have Qt dlls and include headers as a dependency in my repo. I wanted to make use of CMake's CMAKE_AUTOMOC
functionality providing a moc.exe
binary along with dlls and include files. CMake allows to set a custom path to binary but it fails to use CMAKE_AUTOMOC
functionality.
CMake Warning (dev) in myproj/CMakeLists.txt:
AUTOGEN: No valid Qt version found for target myproj_QT. AUTOMOC
disabled. Consider adding:
find_package(Qt<QTVERSION> COMPONENTS Core)
to your CMakeLists.txt file.
I don't want to use find_package
all stuff like that. I want to make dependency management as much straightforward and explicit as it can be. Is there a way to enable automoc/autouic/autorcc features with my approach?