project(nnxx_tests) cmake_minimum_required(VERSION 3.5) set (CMAKE_CXX_STANDARD 11) find_package(PkgConfig REQUIRED) pkg_check_modules(nanomsg REQUIRED nanomsg) FIND_PACKAGE(Protobuf REQUIRED) #FIND_PACKAGE(Glog REQUIRED) #FIND_PACKAGE(OpenCV REQUIRED) #FIND_PACKAGE(PCL REQUIRED) MESSAGE(WARN "pcl:: ${PCL_INCLUDE_DIRS} --- ${PCL_LIBRARIES}") include_directories( /usr/local/include /usr/local/include/snap7 # ${PCL_INCLUDE_DIRS} # ${OpenCV_INCLUDE_DIRS} ${PROTOBUF_INCLUDE_DIRS} laser Locate communication message error_code tool system dispatch ) link_directories("/usr/local/lib") message(STATUS ${EXECUTABLE_OUTPUT_PATH}) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/error_code error_src ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/message message_src ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/lidar_locate locate_src ) #aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/robot robot_src ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/laser LASER_SRC ) #aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/plc PLC_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/locate LOCATE_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/terminor TERMINOR_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/task TASK_MANAGER_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/tool TOOL_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/tool/TaskQueue TASK_QUEUE_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/communication COMMUNICATION_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/system SYSTEM_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/dispatch DISPATCH_SRC ) aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/snap7_communication SNAP7_COMMUNICATION_SRC ) add_executable(terminal main.cpp ${error_src} ${locate_src} ${robot_src} ${message_src} ${LASER_SRC} ${PLC_SRC} ${TERMINOR_SRC} ${LOCATE_SRC} ${TASK_MANAGER_SRC} ${TOOL_SRC} ${TASK_QUEUE_SRC} ${COMMUNICATION_SRC} ${SNAP7_COMMUNICATION_SRC} ${SYSTEM_SRC} ${DISPATCH_SRC} ) target_link_libraries(terminal /usr/local/lib/libglog.a /usr/local/lib/libgflags.a # /usr/local/lib/liblivox_sdk_static.a # /usr/local/apr/lib/libapr-1.a nnxx nanomsg ${PROTOBUF_LIBRARIES} # ${OpenCV_LIBS} ${GLOG_LIBRARIES} # ${PCL_LIBRARIES} ${PROTOBUF_LIBRARIES} # libtensorflow_cc.so #tf_3dcnn_api.so # pointSIFT_API.so snap7 -lpthread )