Skip to content
Snippets Groups Projects
Commit e885a0e0 authored by Radosław Warzocha's avatar Radosław Warzocha
Browse files

Fixes to CMakeLists for whene there's no Morfeusz2

parent 021bf312
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,6 @@ SET(libmaca_STAT_SRC
morph/dispatchanalyser.cpp
morph/mapanalyser.cpp
morph/morphanalyser.cpp
morph/morfeusz2analyser.cpp
util/confignode.cpp
util/debug.cpp
util/sentenceanalyser.cpp
......@@ -87,7 +86,7 @@ SET(libmaca_STAT_SRC
if (UNIX)
set(SFST_PLUGIN ON CACHE BOOL "Build SFST analyser as a plugin")
set(MORFEUSZ_PLUGIN OFF CACHE BOOL "Build Morfeusz analyser as a plugin")
set(MORFEUSZ_PLUGIN ON CACHE BOOL "Build Morfeusz analyser as a plugin")
set(GUESSER_PLUGIN ON CACHE BOOL "Build Guesser analyser as a plugin")
endif(UNIX)
......@@ -143,10 +142,14 @@ if (MORFEUSZ_FOUND)
endif (MORFEUSZ_FOUND)
find_package(Morfeusz2)
if (MORFEUSZ2_FOUND)
set(LIBS ${LIBS} ${MORFEUSZ2_LIBRARY})
include_directories(${MORFEUSZ2_INCLUDE_DIR})
link_directories(${MORFEUSZ2_LIBRARY_DIRS})
set(libmaca_STAT_SRC ${libmaca_STAT_SRC} morph/morfeusz2analyser.cpp)
endif (MORFEUSZ2_FOUND)
find_package(Corpus)
if(BUILD_GPL_PLUGINS)
if (CORPUS_FOUND)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment