I faced many link error when I develop qt application with pure cmake on windows. My requirement is to build core source files into a shared library and link it when needed