CMakeLists.txt 988 B

123456789101112131415161718192021222324252627
  1. # This file was gererated by the build system used internally in the Yandex monorepo.
  2. # Only simple modifications are allowed (adding source-files to targets, adding simple properties
  3. # like target_include_directories). These modifications will be ported to original
  4. # ya.make files by maintainers. Any complex modifications which can't be ported back to the
  5. # original buildsystem will not be accepted.
  6. find_package(OpenSSL REQUIRED)
  7. add_library(libs-libevent-event_openssl)
  8. target_compile_options(libs-libevent-event_openssl PRIVATE
  9. -DHAVE_CONFIG_H
  10. -DEVENT__HAVE_STRLCPY=1
  11. -Wno-everything
  12. )
  13. target_include_directories(libs-libevent-event_openssl PRIVATE
  14. ${CMAKE_SOURCE_DIR}/contrib/libs/libevent
  15. ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/include
  16. )
  17. target_link_libraries(libs-libevent-event_openssl PUBLIC
  18. contrib-libs-libc_compat
  19. OpenSSL::OpenSSL
  20. )
  21. target_sources(libs-libevent-event_openssl PRIVATE
  22. ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_openssl.c
  23. )