CMakeLists.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(LidarMeasure)
  3. ## Compile as C++11, supported in ROS Kinetic and newer
  4. add_compile_options(-std=c++11)
  5. #add_definitions(-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2)
  6. FIND_PACKAGE(OpenCV REQUIRED)
  7. FIND_PACKAGE(PCL REQUIRED)
  8. FIND_PACKAGE(Protobuf REQUIRED)
  9. FIND_PACKAGE(Glog REQUIRED)
  10. set(CMAKE_MODULE_PATH "/usr/local/share/")
  11. set(CMAKE_CXX_FLAGS "-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2")
  12. set(CMAKE_BUILD_TYPE "RELEASE")
  13. #find_package(Eigen3 REQUIRED)
  14. include_directories(
  15. laser
  16. plc
  17. src
  18. Locate
  19. /usr/local/include/modbus
  20. ${PCL_INCLUDE_DIRS}
  21. ${OpenCV_INCLUDE_DIRS}
  22. )
  23. link_directories("/usr/local/lib")
  24. aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/laser LASER_SRC )
  25. aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/plc PLC_SRC )
  26. aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/Locate LOCATE_SRC )
  27. aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/terminor TERMINOR_SRC )
  28. aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/task TASK_MANAGER_SRC )
  29. add_executable(LidarMeasure ./main.cpp ${LASER_SRC} ${PLC_SRC} ${TERMINOR_SRC} ${LOCATE_SRC} ${TASK_MANAGER_SRC})
  30. target_link_libraries(LidarMeasure ${OpenCV_LIBS}
  31. ${GLOG_LIBRARIES} ${PCL_LIBRARIES} ${PROTOBUF_LIBRARIES} ipopt libtensorflow_cc.so
  32. tf_3dcnn_api.so pointSIFT_API.so dark.so /usr/local/lib/libglog.a /usr/local/lib/libmodbus.so
  33. /usr/local/lib/libgflags.a /usr/local/lib/liblivox_sdk_static.a /usr/local/apr/lib/libapr-1.a nnxx nanomsg)