Under CMake, generate dtool_config.h into build/include/ instead of build/ and use build/include/ as the global include directory.