Added hunspell library

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30826 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2009-08-02 10:44:05 +00:00
parent c53d9099c1
commit d74fffa363
2 changed files with 7 additions and 1 deletions

View File

@ -194,7 +194,10 @@ if(use_external_libintl)
add_definitions(-DHAVE_GETTEXT)
endif()
find_library(HUNSPELL_LIBRARY "hunspell")
if (HUNSPELL_LIBRARY)
find_file(HUNSPELL_FOUND "hunspell/hunspell.hxx")
endif()
if (HUNSPELL_FOUND)
message(STATUS "----- Building with Hunspell")

View File

@ -81,6 +81,9 @@ target_link_libraries(${_lyx}
${QT_QTMAIN_LIBRARY}
${vld_dll})
if (HUNSPELL_FOUND)
target_link_libraries(${_lyx} ${HUNSPELL_LIBRARY})
endif()
if (ASPELL_FOUND)
target_link_libraries(${_lyx} ${ASPELL_LIBRARY})
endif()