2020-04-20 17:15:13 +00:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(tcptest)
|
|
|
|
|
|
|
|
message("current dir" ${CMAKE_CURRENT_SOURCE_DIR})
|
2020-04-24 01:25:09 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../general/obj/inc)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../general/obj/inc/third/include)
|
2020-04-20 17:15:13 +00:00
|
|
|
|
2020-04-24 01:25:09 +00:00
|
|
|
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../cmake-build-debug/libgenerallib.a)
|
2020-04-20 17:15:13 +00:00
|
|
|
link_libraries(libGeneral.a)
|
2020-04-20 18:02:54 +00:00
|
|
|
link_libraries(ws2_32)
|
2020-04-21 16:45:50 +00:00
|
|
|
link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/../third/lib/libevent.a)
|
|
|
|
link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/../third/lib/libevent_core.a)
|
2022-03-23 14:00:32 +00:00
|
|
|
add_executable(tcptest src/tcpclient_test.cpp src/patterntest/pattern_test.cpp)
|
|
|
|
|