Converting from automake to cmake