Changed build system from qmake to CMake.