CMakeLists.windows-x86_64.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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-cxxsupp
  16. yutil
  17. )
  18. target_sources(cpp-digest-old_crc PRIVATE
  19. ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/crc.cpp
  20. ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
  21. )
  22. add_custom_command(
  23. OUTPUT
  24. ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
  25. DEPENDS
  26. ${TOOL_gencrc_bin}
  27. COMMAND
  28. ${TOOL_gencrc_bin}
  29. >
  30. crc.inc
  31. )
  32. if(NOT CMAKE_CROSSCOMPILING)
  33. add_dependencies(cpp-digest-old_crc
  34. gencrc
  35. )
  36. endif()