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

include_guard()
if (USE_AUTOBUILD_3P OR USE_CONAN)
use_prebuilt_binary(dictionaries)
endif ()

add_library( ll::hunspell INTERFACE IMPORTED )
use_system_binary(hunspell)
use_prebuilt_binary(libhunspell)
if (WINDOWS)
  target_link_libraries( ll::hunspell INTERFACE libhunspell)
elseif(DARWIN)
  target_link_libraries( ll::hunspell INTERFACE hunspell-1.3)
elseif(LINUX)
  target_link_libraries( ll::hunspell INTERFACE hunspell-1.3)
endif()
target_include_directories( ll::hunspell SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/hunspell)