From e886ac3a4f2dacc79cf174b1257146fd91bf6b7c Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Fri, 18 Apr 2014 13:50:57 +0200 Subject: Added cmake build instructions * changed relative paths of input files to accomodate builds inside a separate directory --- CMakeLists.txt | 22 ++++++++++++++++++++++ dummy/transform.xsl | 2 +- test.cc | 6 +++--- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e98ef8a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 2.8) +project(InputXSLT) + +set( + CMAKE_CXX_FLAGS + "-std=c++11 -W -Wall -Wextra -Winline -pedantic" +) + +include_directories( + src/ +) + +add_executable( + test + test.cc +) + +target_link_libraries( + test + xalan-c + xerces-c +) diff --git a/dummy/transform.xsl b/dummy/transform.xsl index dca15a1..bd7cbc7 100644 --- a/dummy/transform.xsl +++ b/dummy/transform.xsl @@ -22,7 +22,7 @@
- +
diff --git a/test.cc b/test.cc index 39e591a..28a2cac 100644 --- a/test.cc +++ b/test.cc @@ -21,9 +21,9 @@ int main() { FunctionFileRead() ); - xalan::XSLTInputSource input("dummy/in.xml"); - xalan::XSLTInputSource tranformation("dummy/transform.xsl"); - xalan::XSLTResultTarget output("dummy/out.xml"); + xalan::XSLTInputSource input("../dummy/in.xml"); + xalan::XSLTInputSource tranformation("../dummy/transform.xsl"); + xalan::XSLTResultTarget output("out.xml"); int result(transformer.transform( input, -- cgit v1.2.3