Download examples/simple-cmake-pkg/CMakeLists.txt from OpenTransformer/llama.cpp-prismml: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/examples/simple-cmake-pkg/CMakeLists.txt
- Command line
-
hf download hf://OpenTransformer/llama.cpp-prismml/examples/simple-cmake-pkg/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/examples/simple-cmake-pkg/CMakeLists.txt
381 Bytes
| cmake_minimum_required(VERSION 3.12) | |
| project(llama-simple-cmake-pkg) | |
| set(TARGET llama-simple-cmake-pkg) | |
| find_package(Llama REQUIRED) | |
| add_executable(${TARGET} ${CMAKE_CURRENT_LIST_DIR}/../simple/simple.cpp) | |
| install(TARGETS ${TARGET} RUNTIME) | |
| target_link_libraries(${TARGET} PRIVATE llama ggml::all ${CMAKE_THREAD_LIBS_INIT}) | |
| target_compile_features(${TARGET} PRIVATE cxx_std_17) | |