mirror of
https://github.com/ggerganov/llama.cpp
synced 2026-04-24 12:31:51 +02:00
* cmake : allow libcommon to be shared * cmake : rename libcommon to libllama-common * cont : set -fPIC for httplib * cont : export all symbols * cont : fix build_info exports * libs : add libllama-common-base * log : add common_log_get_verbosity_thold()
11 lines
316 B
CMake
11 lines
316 B
CMake
set(TARGET llama-cli)
|
|
add_executable(${TARGET} cli.cpp)
|
|
target_link_libraries(${TARGET} PRIVATE server-context PUBLIC llama-common ${CMAKE_THREAD_LIBS_INIT})
|
|
target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
|
|
|
include_directories(../server)
|
|
|
|
if(LLAMA_TOOLS_INSTALL)
|
|
install(TARGETS ${TARGET} RUNTIME)
|
|
endif()
|