Use CMake for configure.cpp