Generate header detection headers for CMake on Windows.