Files
winsock2_wrapper/CMakeLists.txt
T

46 lines
650 B
CMake
Raw Normal View History

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_library(
wrapper
./socket.cpp
)
target_include_directories(
wrapper
PUBLIC .
)
add_executable(
test_server
./main.cpp
)
target_include_directories(
test_server
PUBLIC .
)
target_link_libraries(
test_server
PUBLIC wrapper
)
2026-06-25 15:07:55 +08:00
2026-06-25 17:37:39 +08:00
# ThreadPool + LockFreeQueue test (header-only, no link deps)
2026-06-25 15:07:55 +08:00
add_executable(
2026-06-25 17:37:39 +08:00
test_pool
./test_pool.cpp
./pool.cpp
)
target_include_directories(
test_pool
PUBLIC .
2026-06-25 15:07:55 +08:00
)