cmake : add install step for libllama and llama.h

This helps dependent CMake projects find the lib and header
when they pull in llama.cpp with ExternalProject_Add().
This commit is contained in:
grencez 2023-04-22 06:37:26 -07:00
parent 0e018fe008
commit 4ceff5a979
No known key found for this signature in database
GPG key ID: A1351B111E640817

View file

@ -338,6 +338,10 @@ if (GGML_CUDA_SOURCES)
set_property(TARGET llama PROPERTY CUDA_ARCHITECTURES OFF)
endif()
# Install step is convenient for dependent CMake projects.
set_target_properties(llama PROPERTIES PUBLIC_HEADER "llama.h")
install(TARGETS llama)
#
# programs, examples and tests