Hi and welcome to devnet,

While it might be doable, I'd recommend using a build manager either CMake like suggested by @debian, QBS or qmake. You'll have an easier way to handle your project and its submodules (not to mention that it will also make your life easier if changing OS to build your project).

Note that you can use qmake for non-Qt project without a problem.