# HG changeset patch # User František Kučera # Date 1547147113 -3600 # Node ID 9aed8c2ea97d841a1a9b5f87be95a8142c2bf172 # Parent 751260846c40f922f0e40377297af28591e04c0a add Xerces-C++ dependency diff -r 751260846c40 -r 9aed8c2ea97d src/CMakeLists.txt --- a/src/CMakeLists.txt Thu Jan 10 19:50:21 2019 +0100 +++ b/src/CMakeLists.txt Thu Jan 10 20:05:13 2019 +0100 @@ -18,7 +18,7 @@ # Relpipe libraries: INCLUDE(FindPkgConfig) -pkg_check_modules (RELPIPE_LIBS relpipe-lib-writer.cpp relpipe-lib-cli.cpp) +pkg_check_modules (RELPIPE_LIBS relpipe-lib-writer.cpp relpipe-lib-cli.cpp xerces-c) include_directories(${RELPIPE_LIBS_INCLUDE_DIRS}) link_directories(${RELPIPE_LIBS_LIBRARY_DIRS}) diff -r 751260846c40 -r 9aed8c2ea97d src/XMLCommand.h --- a/src/XMLCommand.h Thu Jan 10 19:50:21 2019 +0100 +++ b/src/XMLCommand.h Thu Jan 10 20:05:13 2019 +0100 @@ -23,6 +23,11 @@ #include #include +#include +#include +#include +#include + #include namespace relpipe { @@ -34,6 +39,7 @@ void process(std::istream& input, std::ostream& output) { using namespace relpipe::writer; + using namespace xercesc; std::shared_ptr writer(Factory::create(output)); // TODO: remove demo