CMakeLists.txt 895 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(fastvirtualscan)
  3. find_package(autoware_build_flags REQUIRED)
  4. find_package(catkin REQUIRED COMPONENTS
  5. roscpp
  6. sensor_msgs
  7. )
  8. find_package(Qt5Core REQUIRED)
  9. catkin_package(
  10. INCLUDE_DIRS include
  11. LIBRARIES fastvirtualscan
  12. )
  13. SET(CMAKE_CXX_FLAGS "-O2 -g -Wall ${CMAKE_CXX_FLAGS}")
  14. include_directories(
  15. include
  16. ${catkin_INCLUDE_DIRS}
  17. ${Qt5Core_INCLUDE_DIRS}
  18. )
  19. add_library(fastvirtualscan
  20. FastVirtualScan/fastvirtualscan.cpp
  21. )
  22. target_link_libraries(fastvirtualscan
  23. Qt5::Core
  24. ${catkin_LIBRARIES}
  25. )
  26. install(
  27. DIRECTORY include/${PROJECT_NAME}/
  28. DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  29. FILES_MATCHING PATTERN "*.h"
  30. )
  31. install(TARGETS fastvirtualscan
  32. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  33. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  34. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  35. )