From 51922e07def0ffbfc9ef411ccdcf373f61bc51b3 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 15 Feb 2015 22:21:50 +0100 Subject: Fixed compilation of main application --- CMakeLists.txt | 30 ++++++++++++++++++++---------- src/cli/Main.cpp | 6 +++--- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec1bb4d..eb4016f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,6 +233,14 @@ TARGET_LINK_LIBRARIES(ousia_html ousia_core ) +ADD_LIBRARY(ousia_xml + src/plugins/xml/XmlOutput +) + +TARGET_LINK_LIBRARIES(ousia_xml + ousia_core +) + #ADD_LIBRARY(ousia_mozjs # src/plugins/mozjs/MozJsScriptEngine #) @@ -244,17 +252,19 @@ TARGET_LINK_LIBRARIES(ousia_html # Command line interface -#ADD_EXECUTABLE(ousia -# src/cli/Main -#) +ADD_EXECUTABLE(ousia + src/cli/Main +) -#TARGET_LINK_LIBRARIES(ousia -# ousia_core -# ousia_filesystem -# ousia_html -# ousia_xml -# ${Boost_LIBRARIES} -#) +TARGET_LINK_LIBRARIES(ousia + ousia_core + ousia_filesystem + ousia_html + ousia_xml + ousia_osml + ousia_osxml + ${Boost_LIBRARIES} +) # If testing is enabled, build the unit tests IF(TEST) diff --git a/src/cli/Main.cpp b/src/cli/Main.cpp index 2786025..8d7893a 100644 --- a/src/cli/Main.cpp +++ b/src/cli/Main.cpp @@ -49,7 +49,7 @@ #include #include #include -#include +#include #include const size_t ERROR_IN_COMMAND_LINE = 1; @@ -209,7 +209,7 @@ int main(int argc, char **argv) // fill registry registry.registerDefaultExtensions(); - XmlParser xmlParser; + OsxmlParser xmlParser; registry.registerParser( {"text/vnd.ousia.oxm", "text/vnd.ousia.oxd"}, {&RttiTypes::Document, &RttiTypes::Domain, &RttiTypes::Typesystem}, @@ -246,4 +246,4 @@ int main(int argc, char **argv) } return SUCCESS; -} \ No newline at end of file +} -- cgit v1.2.3