CMakeLists.windows-x86_64.txt 1.1 KB

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