summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt30
-rw-r--r--src/cli/Main.cpp6
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 <core/resource/ResourceManager.hpp>
#include <plugins/filesystem/FileLocator.hpp>
#include <plugins/html/DemoOutput.hpp>
-#include <plugins/xml/XmlParser.hpp>
+#include <formats/osxml/OsxmlParser.hpp>
#include <plugins/xml/XmlOutput.hpp>
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
+}