diff --git a/tools/dmake.cpp b/tools/dmake.cpp index 0ffb36720..abfc69993 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -192,23 +192,23 @@ int main(int argc, char **argv) // QMAKE - test/testfiles.pri { - std::ofstream fout1("test/testfiles.pri"); - if (fout1.is_open()) { - fout1 << "# no manual edits - this file is autogenerated by dmake\n\n"; - fout1 << "INCLUDEPATH += ../externals/tinyxml\n"; - fout1 << "\n\nSOURCES += "; - for (unsigned int i = 0; i < testfiles.size(); ++i) { - const std::string filename(testfiles[i].substr(5)); - // Include only files containing tests in this listing. - // I.e. filenames beginning with "test". + std::ofstream fout1("test/testfiles.pri"); + if (fout1.is_open()) { + fout1 << "# no manual edits - this file is autogenerated by dmake\n\n"; + fout1 << "INCLUDEPATH += ../externals/tinyxml\n"; + fout1 << "\n\nSOURCES += "; + for (unsigned int i = 0; i < testfiles.size(); ++i) { + const std::string filename(testfiles[i].substr(5)); + // Include only files containing tests in this listing. + // I.e. filenames beginning with "test". if (filename.compare(0, 4, "test") == 0) { - fout1 << "$${BASEPATH}/" << filename; + fout1 << "$${BASEPATH}/" << filename; if (i + 1 < testfiles.size()) - fout1 << " \\\n" << std::string(11, ' '); - } - } - fout1 << "\n"; - } + fout1 << " \\\n" << std::string(11, ' '); + } + } + fout1 << "\n"; + } } static const char makefile[] = "Makefile";