CMakeLists.linux-aarch64.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_subdirectory(gencrc)
  7. get_built_tool_path(
  8. TOOL_gencrc_bin
  9. TOOL_gencrc_dependency
  10. library/cpp/digest/old_crc/gencrc
  11. gencrc
  12. )
  13. add_library(cpp-digest-old_crc)
  14. target_link_libraries(cpp-digest-old_crc PUBLIC
  15. contrib-libs-linux-headers
  16. contrib-libs-cxxsupp
  17. yutil
  18. )
  19. target_sources(cpp-digest-old_crc PRIVATE
  20. ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
  21. ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/crc.cpp
  22. ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
  23. )
  24. add_custom_command(
  25. OUTPUT
  26. ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
  27. DEPENDS
  28. ${TOOL_gencrc_bin}
  29. COMMAND
  30. ${TOOL_gencrc_bin}
  31. >
  32. crc.inc
  33. )
  34. if(NOT CMAKE_CROSSCOMPILING)
  35. add_dependencies(cpp-digest-old_crc
  36. gencrc
  37. )
  38. endif()