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

set(HUNSPELL_FIND_QUIETLY ON)
set(HUNSPELL_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindHUNSPELL)
else (STANDALONE)
  use_prebuilt_binary(libhunspell)
  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)