CMakeLists.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. add_library(library-cpp-logger)
  7. target_link_libraries(library-cpp-logger PUBLIC
  8. contrib-libs-cxxsupp
  9. yutil
  10. tools-enum_parser-enum_serialization_runtime
  11. library-cpp-json
  12. )
  13. target_sources(library-cpp-logger PRIVATE
  14. ${CMAKE_SOURCE_DIR}/library/cpp/logger/backend.cpp
  15. ${CMAKE_SOURCE_DIR}/library/cpp/logger/backend_creator.cpp
  16. ${CMAKE_SOURCE_DIR}/library/cpp/logger/composite.cpp
  17. ${CMAKE_SOURCE_DIR}/library/cpp/logger/element.cpp
  18. ${CMAKE_SOURCE_DIR}/library/cpp/logger/file.cpp
  19. ${CMAKE_SOURCE_DIR}/library/cpp/logger/filter.cpp
  20. ${CMAKE_SOURCE_DIR}/library/cpp/logger/filter_creator.cpp
  21. ${CMAKE_SOURCE_DIR}/library/cpp/logger/log.cpp
  22. ${CMAKE_SOURCE_DIR}/library/cpp/logger/null.cpp
  23. ${CMAKE_SOURCE_DIR}/library/cpp/logger/rotating_file.cpp
  24. ${CMAKE_SOURCE_DIR}/library/cpp/logger/stream.cpp
  25. ${CMAKE_SOURCE_DIR}/library/cpp/logger/sync_page_cache_file.cpp
  26. ${CMAKE_SOURCE_DIR}/library/cpp/logger/system.cpp
  27. ${CMAKE_SOURCE_DIR}/library/cpp/logger/thread.cpp
  28. ${CMAKE_SOURCE_DIR}/library/cpp/logger/thread_creator.cpp
  29. )
  30. generate_enum_serilization(library-cpp-logger
  31. ${CMAKE_SOURCE_DIR}/library/cpp/logger/priority.h
  32. INCLUDE_HEADERS
  33. library/cpp/logger/priority.h
  34. )
  35. add_global_library_for(library-cpp-logger.global library-cpp-logger)
  36. target_link_libraries(library-cpp-logger.global PUBLIC
  37. contrib-libs-cxxsupp
  38. yutil
  39. tools-enum_parser-enum_serialization_runtime
  40. library-cpp-json
  41. )
  42. target_sources(library-cpp-logger.global PRIVATE
  43. ${CMAKE_SOURCE_DIR}/library/cpp/logger/composite_creator.cpp
  44. ${CMAKE_SOURCE_DIR}/library/cpp/logger/file_creator.cpp
  45. ${CMAKE_SOURCE_DIR}/library/cpp/logger/null_creator.cpp
  46. ${CMAKE_SOURCE_DIR}/library/cpp/logger/rotating_file_creator.cpp
  47. ${CMAKE_SOURCE_DIR}/library/cpp/logger/stream_creator.cpp
  48. ${CMAKE_SOURCE_DIR}/library/cpp/logger/sync_page_cache_file_creator.cpp
  49. ${CMAKE_SOURCE_DIR}/library/cpp/logger/system_creator.cpp
  50. ${CMAKE_SOURCE_DIR}/library/cpp/logger/uninitialized_creator.cpp
  51. )