From 27b7b996104714eacfa4b54c1e098dffaacc7c13 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 27 Jan 2020 14:05:27 +0300 Subject: [PATCH] Added Hunspell library as external_hunspell. --- external/CMakeLists.txt | 1 + external/hunspell/CMakeLists.txt | 52 ++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 external/hunspell/CMakeLists.txt diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index ac085741..be7dbada 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -12,6 +12,7 @@ endif() add_subdirectory(expected) add_subdirectory(ffmpeg) add_subdirectory(gsl) +add_subdirectory(hunspell) add_subdirectory(iconv) add_subdirectory(lz4) add_subdirectory(openal) diff --git a/external/hunspell/CMakeLists.txt b/external/hunspell/CMakeLists.txt new file mode 100644 index 00000000..531e23ea --- /dev/null +++ b/external/hunspell/CMakeLists.txt @@ -0,0 +1,52 @@ +# This file is part of Desktop App Toolkit, +# a set of libraries for developing nice desktop applications. +# +# For license and copyright information please follow this link: +# https://github.com/desktop-app/legal/blob/master/LEGAL + +add_library(external_hunspell OBJECT) +add_library(desktop-app::external_hunspell ALIAS external_hunspell) +init_target(external_hunspell "(external)") + +set(hunspell_loc ${third_party_loc}/hunspell) +set(hunspell_src ${hunspell_loc}/src) + +nice_target_sources(external_hunspell ${hunspell_src} +PRIVATE + hunspell/affentry.cxx + hunspell/affentry.hxx + hunspell/affixmgr.cxx + hunspell/affixmgr.hxx + hunspell/atypes.hxx + hunspell/baseaffix.hxx + hunspell/csutil.cxx + hunspell/csutil.hxx + hunspell/filemgr.cxx + hunspell/filemgr.hxx + hunspell/hashmgr.cxx + hunspell/hashmgr.hxx + hunspell/htypes.hxx + hunspell/hunspell.cxx + hunspell/hunspell.h + hunspell/hunspell.hxx + hunspell/hunvisapi.h + hunspell/hunzip.cxx + hunspell/hunzip.hxx + hunspell/phonet.cxx + hunspell/phonet.hxx + hunspell/replist.cxx + hunspell/replist.hxx + hunspell/suggestmgr.cxx + hunspell/suggestmgr.hxx + hunspell/utf_info.hxx +) + +target_include_directories(external_hunspell +PUBLIC + ${hunspell_src} +) + +target_compile_definitions(external_hunspell +PUBLIC + HUNSPELL_STATIC +)