httplib.h json.hpp -> common lib

This commit is contained in:
FSSRepo 2023-10-06 09:40:08 -04:00
parent bb093eb295
commit c12e18f2f1
6 changed files with 6 additions and 4 deletions

View file

@ -11,6 +11,8 @@ add_library(${TARGET} OBJECT
grammar-parser.cpp grammar-parser.cpp
train.h train.h
train.cpp train.cpp
json.hpp
httplib.h
) )
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)

View file

@ -1,6 +1,6 @@
set(TARGET server-parallel) set(TARGET server-parallel)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(${TARGET} server.cpp ../server/json.hpp ../server/httplib.h) add_executable(${TARGET} server.cpp)
install(TARGETS ${TARGET} RUNTIME) install(TARGETS ${TARGET} RUNTIME)
target_compile_definitions(${TARGET} PRIVATE target_compile_definitions(${TARGET} PRIVATE
SERVER_VERBOSE=$<BOOL:${LLAMA_SERVER_VERBOSE}> SERVER_VERBOSE=$<BOOL:${LLAMA_SERVER_VERBOSE}>

View file

@ -2,8 +2,8 @@
#include "common.h" #include "common.h"
#include "llama.h" #include "llama.h"
#include "../server/httplib.h" #include "httplib.h"
#include "../server/json.hpp" #include "json.hpp"
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>

View file

@ -1,7 +1,7 @@
set(TARGET server) set(TARGET server)
option(LLAMA_SERVER_VERBOSE "Build verbose logging option for Server" ON) option(LLAMA_SERVER_VERBOSE "Build verbose logging option for Server" ON)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(${TARGET} server.cpp json.hpp httplib.h) add_executable(${TARGET} server.cpp)
install(TARGETS ${TARGET} RUNTIME) install(TARGETS ${TARGET} RUNTIME)
target_compile_definitions(${TARGET} PRIVATE target_compile_definitions(${TARGET} PRIVATE
SERVER_VERBOSE=$<BOOL:${LLAMA_SERVER_VERBOSE}> SERVER_VERBOSE=$<BOOL:${LLAMA_SERVER_VERBOSE}>