123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- cmake_minimum_required(VERSION 2.8.3)
- project(hl_chutian)
- ## Compile as C++11, supported in ROS Kinetic and newer
- add_compile_options(-std=c++11)
- #add_definitions(-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2)
- FIND_PACKAGE(OpenCV REQUIRED)
- FIND_PACKAGE(PCL REQUIRED)
- FIND_PACKAGE(Protobuf REQUIRED)
- FIND_PACKAGE(Glog REQUIRED)
- set(CMAKE_MODULE_PATH "/usr/local/share/")
- set(CMAKE_CXX_FLAGS "-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2")
- #set(CMAKE_BUILD_TYPE "RELEASE")
- set(CMAKE_BUILD_TYPE Debug)
- #find_package(Eigen3 REQUIRED)
- MESSAGE(WARN "pcl:: ${PCL_INCLUDE_DIRS} --- ${PCL_LIBRARIES}")
- include_directories(
- laser
- # plc
- src
- Locate
- error_code
- tool
- # /usr/local/include/modbus
- ${PCL_INCLUDE_DIRS}
- ${OpenCV_INCLUDE_DIRS}
- )
- link_directories("/usr/local/lib")
- 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 )
- add_executable(hl_chutian ./main.cpp ./error_code/error_code.cpp
- # ./src/StdCondition.cpp ./src/CalibParam.pb.cc
- ./tool/StdCondition.cpp
- # ./globalmsg.pb.cc
- # ./MeasureTopicPublisher.cpp
- ./laser/laser_task_command
- ${LASER_SRC}
- # ${PLC_SRC}
- ${TERMINOR_SRC}
- ${LOCATE_SRC}
- ${TASK_MANAGER_SRC}
- ${TOOL_SRC}
- ./tool/binary_buf.cpp
- ./tool/thread_condition.h ./tool/thread_condition.cpp
- ./tool/thread_safe_queue.h ./tool/thread_safe_queue.cpp
- ./tool/singleton.h ./tool/singleton.cpp
- )
- target_link_libraries(hl_chutian
- ${OpenCV_LIBS}
- ${GLOG_LIBRARIES}
- ${PCL_LIBRARIES}
- ${PROTOBUF_LIBRARIES}
- # ipopt
- libtensorflow_cc.so
- #tf_3dcnn_api.so
- pointSIFT_API.so
- #dark.so
- /usr/local/lib/libglog.a
- ##/usr/local/lib/libmodbus.so
- /usr/local/lib/libgflags.a
- /usr/local/lib/liblivox_sdk_static.a
- /usr/local/apr/lib/libapr-1.a
- nnxx
- nanomsg
- )
|