Rebuild directory structure

This commit is contained in:
2026-07-22 22:02:06 +08:00
parent 973b2e60de
commit c5e4d5a3a5
13 changed files with 209 additions and 253 deletions
+10 -23
View File
@@ -7,39 +7,26 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED True)
set(CMAKE_CXX_STANDARD_REQUIRED True)
add_library(
wrapper
./socket.cpp
)
target_include_directories(
wrapper
PUBLIC .
)
add_executable(
test_server
./main.cpp
)
add_subdirectory(./socket)
add_subdirectory(./test)
target_include_directories(
test_server
PUBLIC .
PUBLIC ./pool
PUBLIC ./socket
)
target_include_directories(
test_pool
PUBLIC ./pool
)
target_link_libraries(
test_server
PUBLIC wrapper
)
# ThreadPool + LockFreeQueue test (header-only, no link deps)
add_executable(
test_pool
./test_pool.cpp
./pool.cpp
)
target_include_directories(
test_pool
PUBLIC .
)