1# dependencies
2
3find_package(Threads REQUIRED)
4
5# third-party
6
7# ...
8
9# flags
10
11llama_add_compile_flags()
12
13# tools
14
15if (EMSCRIPTEN)
16else()
17 add_subdirectory(batched-bench)
18 add_subdirectory(gguf-split)
19 add_subdirectory(imatrix)
20 add_subdirectory(llama-bench)
21 add_subdirectory(completion)
22 add_subdirectory(perplexity)
23 add_subdirectory(quantize)
24 if (LLAMA_BUILD_SERVER)
25 add_subdirectory(cli)
26 add_subdirectory(server)
27 endif()
28 add_subdirectory(tokenize)
29 add_subdirectory(tts)
30 add_subdirectory(mtmd)
31 if (GGML_RPC)
32 add_subdirectory(rpc)
33 endif()
34 if (NOT GGML_BACKEND_DL)
35 # these examples use the backends directly and cannot be built with dynamic loading
36 add_subdirectory(cvector-generator)
37 add_subdirectory(export-lora)
38 endif()
39 add_subdirectory(fit-params)
40endif()