From 168537848c7317f81ba44d0986e6cd7da2afb976 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Wed, 7 May 2014 16:46:48 +0200 Subject: Extracted core functionality into static libary * this was needed to share object files between the newly separated test-case and example target executables * allows for easy development of multiple "frontends" to the same core functionality --- CMakeLists.txt | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3333c26..53fa29c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,9 +10,9 @@ include_directories( src/ ) -add_executable( - test - test.cc +add_library( + InputXSLT + STATIC src/plattform_guard.cc src/transformation_facade.cc src/function/read_file.cc @@ -21,14 +21,35 @@ add_executable( src/support/filesystem_context.cc src/support/dom/document_cache.cc src/support/dom/document_cache_item.cc - tests/function_read_file.cc ) -target_link_libraries( +add_executable( + example + example.cc +) + +add_executable( test + test.cc + tests/function_read_file.cc +) + +set( + Libraries + InputXSLT xalan-c xerces-c boost_system boost_filesystem +) + +target_link_libraries( + example + ${Libraries} +) + +target_link_libraries( + test gtest + ${Libraries} ) -- cgit v1.2.3