CMake/Tests/CMakeLib/testXMLParser.cxx
2016-08-17 01:49:57 +02:00

17 lines
351 B
C++

#include "testXMLParser.h"
#include "cmXMLParser.h"
#include <iostream>
int testXMLParser(int /*unused*/, char* /*unused*/ [])
{
// TODO: Derive from parser and check attributes.
cmXMLParser parser;
if (!parser.ParseFile(SOURCE_DIR "/testXMLParser.xml")) {
std::cerr << "cmXMLParser failed!" << std::endl;
return 1;
}
return 0;
}