Add flags to cmake.