Skip to content

Commit 98de1c3

Browse files
author
Alisamar Husain
committed
Created a Server example
1 parent 0b2da20 commit 98de1c3

File tree

4 files changed

+12766
-0
lines changed

4 files changed

+12766
-0
lines changed

examples/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ else()
3535
add_subdirectory(perplexity)
3636
add_subdirectory(embedding)
3737
add_subdirectory(save-load-state)
38+
add_subdirectory(server)
3839
endif()

examples/server/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(TARGET server)
2+
add_executable(${TARGET} server.cpp)
3+
4+
# Boost is needed for Crow
5+
find_package(Boost 1.81.0)
6+
include_directories(${Boost_INCLUDE_DIRS})
7+
8+
target_link_libraries(${TARGET} ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
9+
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
10+
target_compile_features(${TARGET} PRIVATE cxx_std_11)
11+

0 commit comments

Comments
 (0)