move snake code to its own subfolder like ixcobra, ixcrypto, etc...

This commit is contained in:
Benjamin Sergeant
2019-09-23 11:46:16 -07:00
parent 6f2fe49a7b
commit 122118196b
21 changed files with 47 additions and 26 deletions

View File

@ -15,15 +15,12 @@ if (MAC)
option(USE_TLS "Add TLS support" ON)
endif()
set (WS ../ws)
include_directories(
${PROJECT_SOURCE_DIR}/Catch2/single_include
../third_party
../third_party/msgpack11
../third_party/spdlog/include
../ws
../ws/snake
)
# Shared sources
@ -34,12 +31,6 @@ set (SOURCES
../third_party/msgpack11/msgpack11.cpp
../third_party/jsoncpp/jsoncpp.cpp
${WS}/snake/IXSnakeServer.cpp
${WS}/snake/IXSnakeProtocol.cpp
${WS}/snake/IXAppConfig.cpp
${WS}/IXRedisClient.cpp
IXSocketTest.cpp
IXSocketConnectTest.cpp
IXWebSocketServerTest.cpp
@ -83,12 +74,13 @@ if (MAC)
endif()
if (APPLE AND USE_TLS)
target_link_libraries(ixwebsocket_unittest "-framework foundation" "-framework security")
target_link_libraries(ixwebsocket_unittest "-framework foundation" "-framework security")
endif()
target_link_libraries(ixwebsocket_unittest ixcore)
target_link_libraries(ixwebsocket_unittest ixcrypto)
target_link_libraries(ixwebsocket_unittest ixcobra)
target_link_libraries(ixwebsocket_unittest ixwebsocket)
target_link_libraries(ixwebsocket_unittest ixsnake)
install(TARGETS ixwebsocket_unittest DESTINATION bin)