adapted cmake file

This commit is contained in:
Johannes Wendel
2019-05-21 23:12:49 +02:00
parent e350170b67
commit 628838baa4
3 changed files with 7 additions and 3 deletions

View File

@@ -6,11 +6,13 @@ set(SOURCES
input/SocketHandler.cpp
output/OutputRequestHandler.cpp
output/OutputRequestHandlerFactory.cpp
output/OutputHTTPServer.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/include)
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/src)
target_link_libraries(${PROJECT_NAME} PRIVATE FlippR-Driver)
####################### POCO ##############################

View File

@@ -11,7 +11,7 @@
using Poco::Net::StreamSocket;
using Poco::Net::TCPServerConnection;
using flippR_driver::input::InputDriver;
using flippR_driver::input::detail::EventHandler;
using flippR_driver::input::EventHandler;
using flippR_driver::input::Event;
namespace flippR_driver
@@ -53,7 +53,8 @@ void SocketHandler::handle(Event &event)
this->queue->push(event);
}
}
}
}
}
}

View File

@@ -14,6 +14,7 @@
#include "input/InputDriver.h"
#include "input/EventHandler.h"
#include "input/Event.h"
#include "utility/IBlockingQueue.h"
namespace flippR_driver
{
@@ -23,7 +24,7 @@ namespace networking
{
namespace input
{
class SocketHandler : public Poco::Net::TCPServerConnection, flippR_driver::input::detail::EventHandler
class SocketHandler : public Poco::Net::TCPServerConnection, flippR_driver::input::EventHandler
{
public:
SocketHandler(Poco::Net::StreamSocket streamSocket, std::shared_ptr<flippR_driver::input::InputDriver> input_driver);