1
0

CMakeLists.txt 828 B

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