Added cmake support to regexptest app