Switch build from qmake to cmake
Enable unittest support