summaryrefslogtreecommitdiff
path: root/llama.cpp/tools/llama-bench/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/tools/llama-bench/CMakeLists.txt')
-rw-r--r--llama.cpp/tools/llama-bench/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/llama.cpp/tools/llama-bench/CMakeLists.txt b/llama.cpp/tools/llama-bench/CMakeLists.txt
new file mode 100644
index 0000000..b8543a9
--- /dev/null
+++ b/llama.cpp/tools/llama-bench/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(TARGET llama-bench)
+add_executable(${TARGET} llama-bench.cpp)
+target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
+target_compile_features(${TARGET} PRIVATE cxx_std_17)
+
+if(LLAMA_TOOLS_INSTALL)
+ install(TARGETS ${TARGET} RUNTIME)
+endif()