diff --git a/CMakeLists.txt b/CMakeLists.txt index 11ebe9eb66fae..0987a76d0bb11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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