1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-20 04:24:36 +08:00
Files
CMake/Tests/CMakeLib/testXMLParser.cxx
Alex Turbov 3d9c018f31 CMakeLibTests: Generate testConfig.h with source/build paths defined
And use it in all tests that had their particular files before.
2024-08-13 06:06:25 +04:00

17 lines
347 B
C++

#include <iostream>
#include "cmXMLParser.h"
#include "testConfig.h"
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;
}