1set(TARGET llama-gguf-hash)
2add_executable(${TARGET} gguf-hash.cpp)
3install(TARGETS ${TARGET} RUNTIME)
4
5# clibs dependencies
6include_directories(deps/)
7
8add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h)
9target_link_libraries(${TARGET} PRIVATE xxhash)
10
11add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h)
12target_link_libraries(${TARGET} PRIVATE sha1)
13if (NOT MSVC)
14 # disable warnings in 3rd party code
15 target_compile_options(sha1 PRIVATE -w)
16endif()
17
18add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h)
19target_link_libraries(${TARGET} PRIVATE sha256)
20
21target_link_libraries(${TARGET} PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT})
22target_compile_features(${TARGET} PRIVATE cxx_std_17)