Switch build system from qmake to CMake