mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-27 12:33:06 +01:00
cmake: make llama an actual library (#392)
This commit is contained in:
parent
56e659a0b2
commit
4122dffff9
@ -217,6 +217,7 @@ add_library(utils OBJECT
|
|||||||
|
|
||||||
target_include_directories(utils PUBLIC .)
|
target_include_directories(utils PUBLIC .)
|
||||||
target_compile_features(utils PUBLIC cxx_std_11) # don't bump
|
target_compile_features(utils PUBLIC cxx_std_11) # don't bump
|
||||||
|
target_link_libraries(utils PRIVATE ${LLAMA_EXTRA_LIBS})
|
||||||
|
|
||||||
add_library(ggml OBJECT
|
add_library(ggml OBJECT
|
||||||
ggml.c
|
ggml.c
|
||||||
@ -226,12 +227,13 @@ target_include_directories(ggml PUBLIC .)
|
|||||||
target_compile_features(ggml PUBLIC c_std_11) # don't bump
|
target_compile_features(ggml PUBLIC c_std_11) # don't bump
|
||||||
target_link_libraries(ggml PRIVATE Threads::Threads ${LLAMA_EXTRA_LIBS})
|
target_link_libraries(ggml PRIVATE Threads::Threads ${LLAMA_EXTRA_LIBS})
|
||||||
|
|
||||||
add_library(llama OBJECT
|
add_library(llama
|
||||||
llama.cpp
|
llama.cpp
|
||||||
llama.h)
|
llama.h)
|
||||||
|
|
||||||
target_include_directories(llama PUBLIC .)
|
target_include_directories(llama PUBLIC .)
|
||||||
target_compile_features(llama PUBLIC cxx_std_11) # don't bump
|
target_compile_features(llama PUBLIC cxx_std_11) # don't bump
|
||||||
|
target_link_libraries(llama PRIVATE utils ggml ${LLAMA_EXTRA_LIBS})
|
||||||
|
|
||||||
#
|
#
|
||||||
# Executables
|
# Executables
|
||||||
|
Loading…
Reference in New Issue
Block a user