diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-27 00:28:24 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-27 00:28:24 +0100 |
commit | a95cf9c477f7259f04d3759acec40a4070ae2b31 (patch) | |
tree | bba0c36bd7ec527bff51eeefdcf1e38452ba9e68 /CMakeLists.txt | |
parent | f1d432892ce158490bb564ba3d01982772439a81 (diff) |
first attempt on command line interface (only wrapper and boost program options).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 06f45d1..9e4979e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ PKG_CHECK_MODULES(MOZJS REQUIRED mozjs-24) PKG_CHECK_MODULES(EXPAT REQUIRED expat) # Include required Boost components using the Boost cmake package -FIND_PACKAGE(Boost COMPONENTS system filesystem REQUIRED) +FIND_PACKAGE(Boost COMPONENTS system filesystem program_options REQUIRED) # Set utf8cpp include path SET(UTF8CPP_INCLUDE_DIR "lib/utf8cpp") @@ -158,22 +158,22 @@ ADD_LIBRARY(ousia_core # src/core/script/ScriptEngine ) -ADD_LIBRARY(ousia_filesystem - src/plugins/filesystem/FileLocator - src/plugins/filesystem/SpecialPaths +ADD_LIBRARY(ousia_css + src/plugins/css/CSSParser ) -TARGET_LINK_LIBRARIES(ousia_filesystem +TARGET_LINK_LIBRARIES(ousia_css ousia_core - ${Boost_LIBRARIES} ) -ADD_LIBRARY(ousia_css - src/plugins/css/CSSParser +ADD_LIBRARY(ousia_filesystem + src/plugins/filesystem/FileLocator + src/plugins/filesystem/SpecialPaths ) -TARGET_LINK_LIBRARIES(ousia_css +TARGET_LINK_LIBRARIES(ousia_filesystem ousia_core + ${Boost_LIBRARIES} ) ADD_LIBRARY(ousia_html @@ -202,6 +202,20 @@ TARGET_LINK_LIBRARIES(ousia_xml # ${MOZJS_LIBRARIES} #) +# Command line interface + +ADD_EXECUTABLE(ousia + src/cli/Main +) + +TARGET_LINK_LIBRARIES(ousia + ousia_core + ousia_css + ousia_filesystem + ousia_html + ousia_xml +) + # If testing is enabled, build the unit tests IF(TEST) |