Transfer from qmake to cmake