From 209f0b2fd9310f503d4599b12483fddc04d1f7dd Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Thu, 8 May 2014 20:14:35 +0200 Subject: Removed gtest based test cases and added program options * selectively testing document construction in plain C++ code has turned out to be more work than worth it ** i.e. removed test cases and GTest dependency * added boost::program_options based frontent to InputXSLT ** example command: "./test --transformation ../dummy/transform.xsl --target out.xml" ** the plan is to use a simple shell script that generated test transformations and compares the output to reference files --- CMakeLists.txt | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 53fa29c..b6229ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,9 +10,18 @@ include_directories( src/ ) -add_library( +set( + Libraries InputXSLT - STATIC + xalan-c + xerces-c + boost_system + boost_filesystem + boost_program_options +) + +set( + Sources src/plattform_guard.cc src/transformation_facade.cc src/function/read_file.cc @@ -23,33 +32,18 @@ add_library( src/support/dom/document_cache_item.cc ) -add_executable( - example - example.cc -) - add_executable( test test.cc - tests/function_read_file.cc ) -set( - Libraries +add_library( InputXSLT - xalan-c - xerces-c - boost_system - boost_filesystem -) - -target_link_libraries( - example - ${Libraries} + STATIC + ${Sources} ) target_link_libraries( test - gtest ${Libraries} ) -- cgit v1.2.3