Download tools/cli/CMakeLists.txt from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/cli/CMakeLists.txt
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github/tools/cli/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/cli/CMakeLists.txt
772 Bytes
| # llama-cli-impl: CLI logic, reusable by app | |
| set(TARGET llama-cli-impl) | |
| add_library(${TARGET} cli.cpp | |
| cli-client.cpp | |
| cli-context.cpp) | |
| set_target_properties(${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) | |
| target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ../server) | |
| target_link_libraries(${TARGET} PUBLIC llama-server-impl llama-common ${CMAKE_THREAD_LIBS_INIT}) | |
| if(LLAMA_TOOLS_INSTALL) | |
| install(TARGETS ${TARGET} LIBRARY) | |
| endif() | |
| # llama-cli executable | |
| set(TARGET llama-cli) | |
| add_executable(${TARGET} main.cpp) | |
| target_link_libraries(${TARGET} PRIVATE llama-cli-impl) | |
| target_compile_features(${TARGET} PRIVATE cxx_std_17) | |
| if(LLAMA_TOOLS_INSTALL) | |
| install(TARGETS ${TARGET} RUNTIME) | |
| endif() | |