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

include_guard()
use_prebuilt_binary(dictionaries)

add_library( ll::hunspell INTERFACE IMPORTED )
use_system_binary(hunspell)
use_prebuilt_binary(libhunspell)
if (WINDOWS)
    target_compile_definitions( ll::hunspell INTERFACE HUNSPELL_STATIC=1)
    target_link_libraries( ll::hunspell INTERFACE
        debug ${ARCH_PREBUILT_DIRS_DEBUG}/libhunspell.lib
        optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libhunspell.lib
        )
elseif(DARWIN)
    target_link_libraries( ll::hunspell INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/libhunspell-1.7.a
        )
elseif(LINUX)
    target_link_libraries( ll::hunspell INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/libhunspell-1.7.a
        )
endif()
target_include_directories( ll::hunspell SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/hunspell)