summaryrefslogtreecommitdiff
path: root/llama.cpp/examples/gguf-hash/CMakeLists.txt
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-12 20:57:17 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-12 20:57:17 +0100
commitb333b06772c89d96aacb5490d6a219fba7c09cc6 (patch)
tree211df60083a5946baa2ed61d33d8121b7e251b06 /llama.cpp/examples/gguf-hash/CMakeLists.txt
downloadllmnpc-b333b06772c89d96aacb5490d6a219fba7c09cc6.tar.gz
Engage!
Diffstat (limited to 'llama.cpp/examples/gguf-hash/CMakeLists.txt')
-rw-r--r--llama.cpp/examples/gguf-hash/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/llama.cpp/examples/gguf-hash/CMakeLists.txt b/llama.cpp/examples/gguf-hash/CMakeLists.txt
new file mode 100644
index 0000000..15c5c68
--- /dev/null
+++ b/llama.cpp/examples/gguf-hash/CMakeLists.txt
@@ -0,0 +1,22 @@
+set(TARGET llama-gguf-hash)
+add_executable(${TARGET} gguf-hash.cpp)
+install(TARGETS ${TARGET} RUNTIME)
+
+# clibs dependencies
+include_directories(deps/)
+
+add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h)
+target_link_libraries(${TARGET} PRIVATE xxhash)
+
+add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h)
+target_link_libraries(${TARGET} PRIVATE sha1)
+if (NOT MSVC)
+ # disable warnings in 3rd party code
+ target_compile_options(sha1 PRIVATE -w)
+endif()
+
+add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h)
+target_link_libraries(${TARGET} PRIVATE sha256)
+
+target_link_libraries(${TARGET} PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT})
+target_compile_features(${TARGET} PRIVATE cxx_std_17)