CMakeLists.linux-x86_64.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. add_library(library-cpp-tld)
  8. target_link_libraries(library-cpp-tld PUBLIC
  9. contrib-libs-linux-headers
  10. contrib-libs-cxxsupp
  11. yutil
  12. cpp-digest-lower_case
  13. )
  14. target_sources(library-cpp-tld PRIVATE
  15. ${CMAKE_BINARY_DIR}/library/cpp/tld/tld.inc
  16. ${CMAKE_SOURCE_DIR}/library/cpp/tld/tld.cpp
  17. ${CMAKE_BINARY_DIR}/library/cpp/tld/tld.inc
  18. )
  19. add_custom_command(
  20. OUTPUT
  21. ${CMAKE_BINARY_DIR}/library/cpp/tld/tld.inc
  22. DEPENDS
  23. ${CMAKE_SOURCE_DIR}/library/cpp/tld/tlds-alpha-by-domain.txt
  24. ${CMAKE_SOURCE_DIR}/library/cpp/tld/gen_tld.py
  25. COMMAND
  26. Python3::Interpreter
  27. ${CMAKE_SOURCE_DIR}/library/cpp/tld/gen_tld.py
  28. ${CMAKE_SOURCE_DIR}/library/cpp/tld/tlds-alpha-by-domain.txt
  29. >
  30. tld.inc
  31. )