diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-30 20:19:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-30 20:19:12 +0000 |
commit | fe48a8c61b98ca401d5403342c6c5fc4a567166d (patch) | |
tree | 8243f533d6f6d2245cc0ed08845f8a8d30de0a10 /CMakeLists.txt | |
parent | 9fd0dc23765c38f315d3bf67516bbe52a1b61bbd (diff) | |
download | rspamd-fe48a8c61b98ca401d5403342c6c5fc4a567166d.tar.gz rspamd-fe48a8c61b98ca401d5403342c6c5fc4a567166d.zip |
[Project] Add n-gramms data files
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b8b03452..dcfc35cbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1314,6 +1314,13 @@ ENDFOREACH(LUA_PLUGIN) INSTALL(FILES "contrib/publicsuffix/effective_tld_names.dat" DESTINATION "${PLUGINSDIR}") +# Install languages data +INSTALL(CODE "FILE(MAKE_DIRECTORY \$ENV{DESTDIR}${PLUGINSDIR}/languages)") +FILE(GLOB LANGUAGES "${CMAKE_CURRENT_SOURCE_DIR}/contrib/languages-data/*.json") +FOREACH(_LANG ${LANGUAGES}) + INSTALL(FILES "${_LANG}" DESTINATION ${PLUGINSDIR}/languages) +ENDFOREACH() + # Lua config FILE(GLOB_RECURSE LUA_CONFIGS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/rules" "${CMAKE_CURRENT_SOURCE_DIR}/rules/*.lua") |