123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- 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)
- include_directories(
- /usr/local/include
- ${PROTOBUF_INCLUDE_DIRS}
- ./message
- ./communication
- ./error_code
- ./tool
- ./system
- # ${PCL_INCLUDE_DIRS}
- # ${OpenCV_INCLUDE_DIRS}
- # ./laser
- # ./locate
- )
- link_directories("/usr/local/lib")
- message(STATUS ${EXECUTABLE_OUTPUT_PATH})
- 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}/communication COMMUNICATION_SRC )
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/system SYSTEM_SRC )
- add_executable(terminal
- main.cpp
- ./error_code/error_code.cpp
- ${locate_src}
- ${robot_src}
- ${message_src}
- # ${LASER_SRC}
- # ${PLC_SRC}
- # ${TERMINOR_SRC}
- # ${LOCATE_SRC}
- # ${TASK_MANAGER_SRC}
- ${TOOL_SRC}
- ${COMMUNICATION_SRC}
- ${SYSTEM_SRC}
- )
- target_link_libraries(terminal
- nnxx
- nanomsg
- ${PROTOBUF_LIBRARIES}
- /usr/local/lib/libglog.a
- /usr/local/lib/libgflags.a
- ${GLOG_LIBRARIES}
- )
- add_executable(locate_client
- ./test/Locate_client.cpp
- ./lidar_locate/Locate_communicator.cpp
- ./error_code/error_code.cpp
- ${message_src}
- ${TOOL_SRC}
- ${COMMUNICATION_SRC}
- )
- target_link_libraries(locate_client
- nnxx
- nanomsg
- ${PROTOBUF_LIBRARIES}
- /usr/local/lib/libglog.a
- /usr/local/lib/libgflags.a
- )
- add_executable(locate_test
- ./test/test_locate_sample.cpp
- ./lidar_locate/Locate_communicator.cpp
- ./error_code/error_code.cpp
- ${message_src}
- ${TOOL_SRC}
- ${COMMUNICATION_SRC}
- )
- target_link_libraries(locate_test
- nnxx
- nanomsg
- ${PROTOBUF_LIBRARIES}
- /usr/local/lib/libglog.a
- /usr/local/lib/libgflags.a
- )
- # 车位分配测试
- add_executable(parkspace_test
- ./test/test_parkspace_sample.cpp
- ./parkspace_allocation/parkspace_allocation_communicator.cpp
- ./error_code/error_code.cpp
- ${message_src}
- ${TOOL_SRC}
- ${COMMUNICATION_SRC}
- )
- target_link_libraries(parkspace_test
- nnxx
- nanomsg
- ${PROTOBUF_LIBRARIES}
- /usr/local/lib/libglog.a
- /usr/local/lib/libgflags.a
- )
- add_executable(parkspace_client
- ./test/parkspace_client.cpp
- ./error_code/error_code.cpp
- ${message_src}
- ${TOOL_SRC}
- ${COMMUNICATION_SRC}
- )
- target_link_libraries(parkspace_client
- nnxx
- nanomsg
- ${PROTOBUF_LIBRARIES}
- /usr/local/lib/libglog.a
- /usr/local/lib/libgflags.a
- )
|