CMakeLists.txt 612 B

123456789101112131415161718192021222324
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(socketio)
  3. ## Compile as C++11, supported in ROS Kinetic and newer
  4. #add_compile_options(-std=c++11)
  5. set(CMAKE_CXX_STANDARD 11)
  6. FIND_PACKAGE(Protobuf REQUIRED)
  7. include_directories(
  8. /usr/local/include
  9. )
  10. add_executable(server_monitor server_monitor.cpp
  11. pose2d.cpp
  12. RobotMonitorNode.cpp
  13. emqx-client/paho_client.cpp
  14. emqx-client/mqttmsg.cpp
  15. emqx-client/message.pb.cc
  16. )
  17. target_link_libraries(server_monitor paho-mqtt3a
  18. ${GLOG_LIBRARIES} ${PROTOBUF_LIBRARIES}
  19. libglog.a libgflags.a
  20. -lpthread)