Improved the CEF helper for CMake.