CMakeLists.linux-x86_64.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. find_package(Python3 REQUIRED)
  7. set(
  8. KOSHER_SVN_VERSION
  9. )
  10. set(
  11. SANDBOX_TASK_ID
  12. 0
  13. )
  14. set(
  15. BUILD_TYPE
  16. RELEASE
  17. )
  18. add_library(library-cpp-build_info)
  19. target_include_directories(library-cpp-build_info PUBLIC
  20. ${CMAKE_BINARY_DIR}/library/cpp/build_info
  21. )
  22. target_link_libraries(library-cpp-build_info PUBLIC
  23. contrib-libs-linux-headers
  24. contrib-libs-cxxsupp
  25. yutil
  26. cpp-string_utils-base64
  27. )
  28. target_sources(library-cpp-build_info PRIVATE
  29. ${CMAKE_SOURCE_DIR}/library/cpp/build_info/build_info_static.cpp
  30. ${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
  31. ${CMAKE_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
  32. ${CMAKE_BINARY_DIR}/library/cpp/build_info/build_info.cpp
  33. )
  34. add_custom_command(
  35. OUTPUT
  36. ${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
  37. DEPENDS
  38. ${CMAKE_SOURCE_DIR}/build/scripts/build_info_gen.py
  39. COMMAND
  40. Python3::Interpreter
  41. ${CMAKE_SOURCE_DIR}/build/scripts/build_info_gen.py
  42. ${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
  43. \"${CMAKE_CXX_COMPILER}\"
  44. \"${CMAKE_CXX_FLAGS}\"
  45. )
  46. configure_file(
  47. ${CMAKE_SOURCE_DIR}/library/cpp/build_info/sandbox.cpp.in
  48. ${CMAKE_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
  49. )
  50. configure_file(
  51. ${CMAKE_SOURCE_DIR}/library/cpp/build_info/build_info.cpp.in
  52. ${CMAKE_BINARY_DIR}/library/cpp/build_info/build_info.cpp
  53. )