From b333b06772c89d96aacb5490d6a219fba7c09cc6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 12 Feb 2026 20:57:17 +0100 Subject: Engage! --- llama.cpp/examples/simple-cmake-pkg/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 llama.cpp/examples/simple-cmake-pkg/CMakeLists.txt (limited to 'llama.cpp/examples/simple-cmake-pkg/CMakeLists.txt') diff --git a/llama.cpp/examples/simple-cmake-pkg/CMakeLists.txt b/llama.cpp/examples/simple-cmake-pkg/CMakeLists.txt new file mode 100644 index 0000000..128e38c --- /dev/null +++ b/llama.cpp/examples/simple-cmake-pkg/CMakeLists.txt @@ -0,0 +1,11 @@ +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) -- cgit v1.2.3