httplib.h json.hpp -> common lib
This commit is contained in:
parent
bb093eb295
commit
c12e18f2f1
6 changed files with 6 additions and 4 deletions
|
@ -11,6 +11,8 @@ add_library(${TARGET} OBJECT
|
|||
grammar-parser.cpp
|
||||
train.h
|
||||
train.cpp
|
||||
json.hpp
|
||||
httplib.h
|
||||
)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
|
|
|
@ -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}>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue