mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-28 14:48:43 +08:00
f3e42969a5
It's sufficient to define PUGIXML_HEADER_ONLY anywhere now, source is included automatically. This is a second attempt; this time it includes a workaround for QMake bug that caused it to generate incorrect Makefile.
17 lines
356 B
C++
17 lines
356 B
C++
#define PUGIXML_HEADER_ONLY
|
|
#define pugi pugih
|
|
|
|
#include "common.hpp"
|
|
|
|
// Check header guards
|
|
#include "../src/pugixml.hpp"
|
|
#include "../src/pugixml.hpp"
|
|
|
|
TEST(header_only)
|
|
{
|
|
xml_document doc;
|
|
CHECK(doc.load_string(STR("<node/>")));
|
|
CHECK_STRING(doc.first_child().name(), STR("node"));
|
|
CHECK(doc.first_child() == doc.select_node(STR("//*")).node());
|
|
}
|