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
train.h
train.cpp
json.hpp
httplib.h
)
if (BUILD_SHARED_LIBS)

View file

@ -1,6 +1,6 @@
set(TARGET server-parallel)
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)
target_compile_definitions(${TARGET} PRIVATE
SERVER_VERBOSE=$<BOOL:${LLAMA_SERVER_VERBOSE}>

View file

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

View file

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