aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/old_crc
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /library/cpp/digest/old_crc
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/digest/old_crc')
-rw-r--r--library/cpp/digest/old_crc/CMakeLists.txt21
-rw-r--r--library/cpp/digest/old_crc/gencrc/CMakeLists.txt16
2 files changed, 37 insertions, 0 deletions
diff --git a/library/cpp/digest/old_crc/CMakeLists.txt b/library/cpp/digest/old_crc/CMakeLists.txt
new file mode 100644
index 0000000000..dda20afa32
--- /dev/null
+++ b/library/cpp/digest/old_crc/CMakeLists.txt
@@ -0,0 +1,21 @@
+add_library(cpp-digest-old_crc)
+target_link_libraries(cpp-digest-old_crc PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-digest-old_crc INTERFACE
+ ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
+)
+target_sources(cpp-digest-old_crc PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/crc.cpp
+)
+add_custom_command(
+ OUTPUT
+ ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
+ DEPENDS
+ ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/gencrc/gencrc
+ COMMAND
+ ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/gencrc/gencrc
+ >
+ crc.inc
+)
diff --git a/library/cpp/digest/old_crc/gencrc/CMakeLists.txt b/library/cpp/digest/old_crc/gencrc/CMakeLists.txt
new file mode 100644
index 0000000000..24f2dc82de
--- /dev/null
+++ b/library/cpp/digest/old_crc/gencrc/CMakeLists.txt
@@ -0,0 +1,16 @@
+add_executable(gencrc)
+target_link_libraries(gencrc PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-cpuid_check
+)
+target_sources(gencrc PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/gencrc/main.cpp
+)
+target_link_flags(gencrc
+ PUBLIC
+ -lpthread
+ -lrt
+ -ldl
+)
+vcs_info(gencrc)