CMakeLists.txt 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. cmake_minimum_required(VERSION 3.5)
  2. project(rs_driver_demos)
  3. message(=============================================================)
  4. message("-- Ready to compile demos")
  5. message(=============================================================)
  6. if (${ENABLE_PCL_POINTCLOUD})
  7. find_package(PCL REQUIRED)
  8. include_directories(${PCL_INCLUDE_DIRS})
  9. link_directories(${PCL_LIBRARY_DIRS})
  10. add_definitions(${PCL_DEFINITIONS})
  11. endif (${ENABLE_PCL_POINTCLOUD})
  12. include_directories(${DRIVER_INCLUDE_DIRS} )
  13. add_executable(demo_online
  14. demo_online.cpp)
  15. target_link_libraries(demo_online
  16. ${EXTERNAL_LIBS})
  17. add_executable(demo_online_multi_lidars
  18. demo_online_multi_lidars.cpp)
  19. target_link_libraries(demo_online_multi_lidars
  20. ${EXTERNAL_LIBS})
  21. if(NOT ${DISABLE_PCAP_PARSE})
  22. add_executable(demo_pcap
  23. demo_pcap.cpp)
  24. target_link_libraries(demo_pcap
  25. ${EXTERNAL_LIBS})
  26. endif(NOT ${DISABLE_PCAP_PARSE})