Rebuild directory structure
This commit is contained in:
+10
-23
@@ -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 .
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user