25 lines
623 B
CMake
25 lines
623 B
CMake
# -*- 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)
|
|
endif()
|
|
|
|
find_library(HUNSPELL_LIBRARY
|
|
NAMES
|
|
libhunspell.lib
|
|
libhunspell-1.7.a
|
|
PATHS "${ARCH_PREBUILT_DIRS_RELEASE}" REQUIRED NO_DEFAULT_PATH)
|
|
|
|
target_link_libraries(ll::hunspell INTERFACE ${HUNSPELL_LIBRARY})
|
|
|
|
target_include_directories( ll::hunspell SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/hunspell)
|