summaryrefslogtreecommitdiff
path: root/examples/server/CMakeLists.txt
diff options
context:
space:
mode:
authorfirecoperana <xuqiaowei1124@gmail.com>2025-06-08 11:38:47 +0000
committerGitHub <noreply@github.com>2025-06-08 14:38:47 +0300
commitdf170c83a554df526e25a825389e692669644c85 (patch)
tree962efa23b4a7f341f5578ddfc8e171ecdbf8f869 /examples/server/CMakeLists.txt
parent9e567e385adacbc4710e94ee7223c5f6b0404699 (diff)
Webui improvement (#481)
* update webui * add token/s in webui * add webui files * fix webui first message disappear in some browser * add missing html files --------- Co-authored-by: firecoperana <firecoperana>
Diffstat (limited to 'examples/server/CMakeLists.txt')
-rw-r--r--examples/server/CMakeLists.txt22
1 files changed, 6 insertions, 16 deletions
diff --git a/examples/server/CMakeLists.txt b/examples/server/CMakeLists.txt
index dbe41f1f..33fd25f0 100644
--- a/examples/server/CMakeLists.txt
+++ b/examples/server/CMakeLists.txt
@@ -15,21 +15,8 @@ set(TARGET_SRCS
httplib.h
)
set(PUBLIC_ASSETS
- colorthemes.css
- style.css
- theme-beeninorder.css
- theme-ketivah.css
- theme-mangotango.css
- theme-playground.css
- theme-polarnight.css
- theme-snowstorm.css
- index.html
- index-new.html
- index.js
- completion.js
- system-prompts.js
- prompt-formats.js
- json-schema-to-grammar.mjs
+ index.html.gz
+ loading.html
)
foreach(asset ${PUBLIC_ASSETS})
@@ -41,6 +28,8 @@ foreach(asset ${PUBLIC_ASSETS})
OUTPUT "${output}"
COMMAND "${CMAKE_COMMAND}" "-DINPUT=${input}" "-DOUTPUT=${output}" -P "${PROJECT_SOURCE_DIR}/scripts/xxd.cmake"
)
+ set_source_files_properties(${output} PROPERTIES GENERATED TRUE)
+
endforeach()
add_executable(${TARGET} ${TARGET_SRCS})
@@ -49,6 +38,7 @@ target_compile_definitions(${TARGET} PRIVATE
SERVER_VERBOSE=$<BOOL:${LLAMA_SERVER_VERBOSE}>
)
+target_include_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR})
target_link_libraries(${TARGET} PRIVATE common ${CMAKE_THREAD_LIBS_INIT})
if (LLAMA_SERVER_SSL)
@@ -61,4 +51,4 @@ if (WIN32)
TARGET_LINK_LIBRARIES(${TARGET} PRIVATE ws2_32)
endif()
-target_compile_features(${TARGET} PRIVATE cxx_std_11)
+target_compile_features(${TARGET} PRIVATE cxx_std_17)