63
63
testfilecmake.close ();
66
ifstream CTestTestfile ("CTestTestfile.cmake", ifstream::in);
67
bool needsInclude = true;
70
string includeLine = string ("INCLUDE (") +
72
string ("_test.cmake)");
74
if (CTestTestfile.is_open ())
76
while (CTestTestfile.good ())
78
getline (CTestTestfile, line);
80
if (line == includeLine)
84
CTestTestfile.close ();
89
ofstream CTestTestfileW ("CTestTestfile.cmake", ofstream::app | ofstream::out);
91
if (CTestTestfileW.is_open ())
93
CTestTestfileW << includeLine << endl;
94
CTestTestfileW.close ();