cmake_minimum_required(VERSION 2.8.3)
project(socketio)

## Compile as C++11, supported in ROS Kinetic and newer
#add_compile_options(-std=c++11)
set(CMAKE_CXX_STANDARD 11)
FIND_PACKAGE(Protobuf REQUIRED)
include_directories(
        /usr/local/include
)

add_executable(server_monitor server_monitor.cpp
        pose2d.cpp
        RobotMonitorNode.cpp
        emqx-client/paho_client.cpp
        emqx-client/mqttmsg.cpp
        emqx-client/message.pb.cc

       )
target_link_libraries(server_monitor paho-mqtt3a
        ${GLOG_LIBRARIES} ${PROTOBUF_LIBRARIES}
        libglog.a libgflags.a
        -lpthread)

