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:
parent
0e018fe008
commit
4ceff5a979
1 changed files with 4 additions and 0 deletions
|
@ -338,6 +338,10 @@ if (GGML_CUDA_SOURCES)
|
||||||
set_property(TARGET llama PROPERTY CUDA_ARCHITECTURES OFF)
|
set_property(TARGET llama PROPERTY CUDA_ARCHITECTURES OFF)
|
||||||
endif()
|
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
|
# programs, examples and tests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue