2026-04-03 20:51:58 +08:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
|
|
project(WinSock2Wrapper)
|
|
|
|
|
|
2026-06-25 17:37:39 +08:00
|
|
|
set(CMAKE_C_STANDARD 17)
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
set(CMAKE_C_STANDARD_REQUIRED True)
|
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
2026-04-03 20:51:58 +08:00
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
|
test_server
|
|
|
|
|
./main.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2026-07-22 22:02:06 +08:00
|
|
|
add_subdirectory(./socket)
|
|
|
|
|
add_subdirectory(./test)
|
|
|
|
|
|
2026-04-03 20:51:58 +08:00
|
|
|
target_include_directories(
|
|
|
|
|
test_server
|
2026-07-22 22:02:06 +08:00
|
|
|
PUBLIC ./pool
|
|
|
|
|
PUBLIC ./socket
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(
|
|
|
|
|
test_pool
|
|
|
|
|
PUBLIC ./pool
|
2026-04-03 20:51:58 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
test_server
|
|
|
|
|
PUBLIC wrapper
|
|
|
|
|
)
|