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 cd3c9d879c
commit 1cde26771a
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)

View File

@ -4,7 +4,7 @@
* Copyright (c) 2017 Machine Zone. All rights reserved.
*/
#include "IXSnakeServer.h"
#include <ixsnake/IXSnakeServer.h>
#include "IXTest.h"
#include "catch.hpp"
#include <chrono>

View File

@ -3,12 +3,12 @@
* Copyright (c) 2018 Machine Zone. All rights reserved.
*/
#include "IXSnakeServer.h"
#include "IXTest.h"
#include "catch.hpp"
#include <iostream>
#include <ixcobra/IXCobraMetricsPublisher.h>
#include <ixcrypto/IXUuid.h>
#include <ixsnake/IXSnakeServer.h>
#include <set>
using namespace ix;

View File

@ -6,7 +6,7 @@
#pragma once
#include "IXAppConfig.h"
#include <ixsnake/IXAppConfig.h>
#include "IXGetFreePort.h"
#include <iostream>
#include <ixwebsocket/IXWebSocketServer.h>