CMakeLists.linux-x86_64.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file was generated 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. add_executable(grpc_cpp)
  7. target_compile_options(grpc_cpp PRIVATE
  8. -DGRPC_USE_ABSL=0
  9. $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
  10. )
  11. target_include_directories(grpc_cpp PRIVATE
  12. ${CMAKE_SOURCE_DIR}/contrib/libs/grpc
  13. ${CMAKE_SOURCE_DIR}/contrib/libs/grpc/include
  14. )
  15. target_link_libraries(grpc_cpp PUBLIC
  16. contrib-libs-linux-headers
  17. contrib-libs-cxxsupp
  18. yutil
  19. library-cpp-cpuid_check
  20. src-compiler-grpc_plugin_support
  21. )
  22. target_link_options(grpc_cpp PRIVATE
  23. -ldl
  24. -lrt
  25. -Wl,--no-as-needed
  26. -fPIC
  27. -fPIC
  28. -lpthread
  29. -lrt
  30. -ldl
  31. )
  32. target_sources(grpc_cpp PRIVATE
  33. ${CMAKE_SOURCE_DIR}/contrib/libs/grpc/src/compiler/cpp_plugin.cc
  34. )
  35. target_allocator(grpc_cpp
  36. cpp-malloc-tcmalloc
  37. libs-tcmalloc-no_percpu_cache
  38. )
  39. vcs_info(grpc_cpp)