You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 766B

1234567891011121314151617181920212223242526
  1. # Copyright 2016 Google Inc. All Rights Reserved.
  2. # Use of this source code is governed by a BSD-style
  3. # license that can be found in the LICENSE file.
  4. #
  5. # This library is derived from https://github.com/google/compact_enc_det
  6. # git id: 37529e628fbac2e4c0d4d8520be9db789f316c9e
  7. project(CED CXX)
  8. set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE INTERNAL "No dev warnings")
  9. option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
  10. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-narrowing")
  11. include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  12. set(CED_LIBRARY_SOURCES
  13. compact_enc_det.cc
  14. compact_enc_det_hint_code.cc
  15. util/encodings/encodings.cc
  16. util/languages/languages.cc
  17. ced_c.cc
  18. )
  19. add_library(rspamd-ced STATIC ${CED_LIBRARY_SOURCES})