Skip to content

Commit

Permalink
example: add server application (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
felrock committed Dec 8, 2023
1 parent 1ce7c88 commit 4b6c18d
Show file tree
Hide file tree
Showing 7 changed files with 34,060 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bark.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ extern "C" {

#endif // BARK_API_INTERNAL

#endif // BARK_H
#endif // BARK_H
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(main)
add_subdirectory(server)
add_subdirectory(quantize)
2 changes: 1 addition & 1 deletion examples/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ target_compile_features(${TARGET} PRIVATE cxx_std_11)

if(MSVC)
target_compile_definitions(${TARGET} PRIVATE -D_CRT_SECURE_NO_WARNINGS=1)
endif()
endif()
5 changes: 5 additions & 0 deletions examples/server/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(TARGET server)
add_executable(${TARGET} server.cpp httplib.h json.hpp)

install(TARGETS ${TARGET} RUNTIME)
target_link_libraries(${TARGET} PRIVATE bark.cpp ${CMAKE_THREAD_LIBS_INIT})
Loading

0 comments on commit 4b6c18d

Please sign in to comment.