summaryrefslogtreecommitdiff
path: root/indra/cmake/Hunspell.cmake
blob: 24cf41f4e4a67e84f7beb40b382a4223a41b403e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- cmake -*-
include(Prebuilt)

set(HUNSPELL_FIND_QUIETLY ON)
set(HUNSPELL_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindHUNSPELL)
else (STANDALONE)
  use_prebuilt_binary(libhunspell)
  use_prebuilt_binary(dictionaries)
  if (WINDOWS)
    set(HUNSPELL_LIBRARY libhunspell)
    set(HUNSPELL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/hunspell)
  elseif(DARWIN)
    set(HUNSPELL_LIBRARY hunspell-1.3)
    set(HUNSPELL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/hunspell)
  else()
    set(HUNSPELL_LIBRARY hunspell-1.3)
    set(HUNSPELL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/hunspell)
  endif()
endif (STANDALONE)