CMakeLists.linux.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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-config)
  7. target_include_directories(library-cpp-config PUBLIC
  8. ${CMAKE_BINARY_DIR}/library/cpp/config
  9. )
  10. target_link_libraries(library-cpp-config PUBLIC
  11. contrib-libs-linux-headers
  12. contrib-libs-cxxsupp
  13. yutil
  14. library-cpp-archive
  15. library-cpp-json
  16. library-cpp-lua
  17. cpp-string_utils-relaxed_escaper
  18. )
  19. target_sources(library-cpp-config PRIVATE
  20. ${CMAKE_SOURCE_DIR}/library/cpp/config/config.cpp
  21. ${CMAKE_SOURCE_DIR}/library/cpp/config/sax.cpp
  22. ${CMAKE_SOURCE_DIR}/library/cpp/config/value.cpp
  23. ${CMAKE_SOURCE_DIR}/library/cpp/config/markup.cpp
  24. ${CMAKE_SOURCE_DIR}/library/cpp/config/ini.cpp
  25. ${CMAKE_SOURCE_DIR}/library/cpp/config/domscheme.cpp
  26. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  27. )
  28. add_custom_command(
  29. OUTPUT
  30. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  31. DEPENDS
  32. ${TOOLS_ROOT}/tools/archiver/archiver
  33. ${CMAKE_SOURCE_DIR}/library/cpp/config/support/pp.lua
  34. COMMAND
  35. ${TOOLS_ROOT}/tools/archiver/archiver
  36. -q
  37. -x
  38. ${CMAKE_SOURCE_DIR}/library/cpp/config/support/pp.lua:
  39. -o
  40. ${CMAKE_BINARY_DIR}/library/cpp/config/code.inc
  41. )
  42. target_ragel_lexers(library-cpp-config
  43. PRIVATE
  44. ${CMAKE_SOURCE_DIR}/library/cpp/config/markupfsm.h.rl6
  45. -CG2
  46. )