adapted cmake file
This commit is contained in:
@@ -6,11 +6,13 @@ set(SOURCES
|
|||||||
input/SocketHandler.cpp
|
input/SocketHandler.cpp
|
||||||
output/OutputRequestHandler.cpp
|
output/OutputRequestHandler.cpp
|
||||||
output/OutputRequestHandlerFactory.cpp
|
output/OutputRequestHandlerFactory.cpp
|
||||||
|
output/OutputHTTPServer.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${SOURCES})
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
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)
|
target_link_libraries(${PROJECT_NAME} PRIVATE FlippR-Driver)
|
||||||
|
|
||||||
####################### POCO ##############################
|
####################### POCO ##############################
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using Poco::Net::StreamSocket;
|
using Poco::Net::StreamSocket;
|
||||||
using Poco::Net::TCPServerConnection;
|
using Poco::Net::TCPServerConnection;
|
||||||
using flippR_driver::input::InputDriver;
|
using flippR_driver::input::InputDriver;
|
||||||
using flippR_driver::input::detail::EventHandler;
|
using flippR_driver::input::EventHandler;
|
||||||
using flippR_driver::input::Event;
|
using flippR_driver::input::Event;
|
||||||
|
|
||||||
namespace flippR_driver
|
namespace flippR_driver
|
||||||
@@ -53,7 +53,8 @@ void SocketHandler::handle(Event &event)
|
|||||||
this->queue->push(event);
|
this->queue->push(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
#include "input/InputDriver.h"
|
#include "input/InputDriver.h"
|
||||||
#include "input/EventHandler.h"
|
#include "input/EventHandler.h"
|
||||||
#include "input/Event.h"
|
#include "input/Event.h"
|
||||||
|
#include "utility/IBlockingQueue.h"
|
||||||
|
|
||||||
namespace flippR_driver
|
namespace flippR_driver
|
||||||
{
|
{
|
||||||
@@ -23,7 +24,7 @@ namespace networking
|
|||||||
{
|
{
|
||||||
namespace input
|
namespace input
|
||||||
{
|
{
|
||||||
class SocketHandler : public Poco::Net::TCPServerConnection, flippR_driver::input::detail::EventHandler
|
class SocketHandler : public Poco::Net::TCPServerConnection, flippR_driver::input::EventHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SocketHandler(Poco::Net::StreamSocket streamSocket, std::shared_ptr<flippR_driver::input::InputDriver> input_driver);
|
SocketHandler(Poco::Net::StreamSocket streamSocket, std::shared_ptr<flippR_driver::input::InputDriver> input_driver);
|
||||||
|
|||||||
Reference in New Issue
Block a user