Commit b3646136 authored by Radosław Warzocha's avatar Radosław Warzocha

Updated CMake files for Morfeusz2

parent 8c609ade
FIND_PATH(MORFEUSZ2_INCLUDE_DIR morfeusz2.h /usr/include /usr/local/include)
MARK_AS_ADVANCED(MORFEUSZ2_INCLUDE_DIR)
FIND_LIBRARY(MORFEUSZ2_LIBRARY NAMES morfeusz2 PATH /usr/lib /usr/local/lib)
MARK_AS_ADVANCED(MORFEUSZ2_LIBRARY)
IF (MORFEUSZ2_INCLUDE_DIR AND MORFEUSZ2_LIBRARY)
SET(MORFEUSZ2_FOUND TRUE)
ENDIF (MORFEUSZ2_INCLUDE_DIR AND MORFEUSZ2_LIBRARY)
IF (MORFEUSZ2_FOUND)
IF (NOT Morfeusz2_FIND_QUIETLY)
MESSAGE(STATUS "Found Morfeusz2: ${MORFEUSZ2_LIBRARY}")
ENDIF (NOT Morfeusz2_FIND_QUIETLY)
ELSE (MORFEUSZ2_FOUND)
IF (Morfeusz2_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find Morfeusz2")
ELSE (Morfeusz2_FIND_REQUIRED)
IF (NOT Morfeusz2_FIND_QUIETLY)
MESSAGE("Morfeusz2 NOT found")
ENDIF (NOT Morfeusz2_FIND_QUIETLY)
ENDIF (Morfeusz2_FIND_REQUIRED)
ENDIF (MORFEUSZ2_FOUND)
......@@ -142,6 +142,11 @@ if (MORFEUSZ_FOUND)
endif(MORFEUSZ_PLUGIN)
endif (MORFEUSZ_FOUND)
find_package(Morfeusz2)
set(LIBS ${LIBS} ${MORFEUSZ2_LIBRARY})
include_directories(${MORFEUSZ2_INCLUDE_DIR})
link_directories(${MORFEUSZ2_LIBRARY_DIRS})
find_package(Corpus)
if(BUILD_GPL_PLUGINS)
if (CORPUS_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment