generallib/test/CMakeLists.txt

15 lines
615 B
CMake

cmake_minimum_required(VERSION 3.15)
project(tcptest)
message("current dir" ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../general/obj/inc)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../general/obj/inc/third/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../cmake-build-debug/libgenerallib.a)
link_libraries(libGeneral.a)
link_libraries(ws2_32)
link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/../third/lib/libevent.a)
link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/../third/lib/libevent_core.a)
add_executable(tcptest src/tcpclient_test.cpp src/patterntest/pattern_test.cpp)