CMakeLists.txt 940 B

1234567891011121314151617181920212223242526272829303132333435
  1. add_definitions(${Qt5Core_DEFINITIONS})
  2. set (CMAKE_AUTOMOC ON)
  3. include_directories(
  4. ${GAZEBO_INCLUDE_DIRS}
  5. ${Qt5Core_INCLUDE_DIRS}
  6. )
  7. link_directories(${GAZEBO_LIBRARY_DIRS})
  8. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
  9. set (plugins
  10. LensFlareVisualPlugin
  11. BloomVisualPlugin
  12. )
  13. foreach (src ${plugins})
  14. add_library(${src} SHARED ${src}.cc)
  15. target_link_libraries(${src} ${GAZEBO_LIBRARIES})
  16. install (TARGETS ${src} DESTINATION ${CITYSIM_PLUGIN_INSTALL_DIR})
  17. endforeach (src ${plugins})
  18. set (GUIplugin
  19. TrafficLightsGUIPlugin
  20. )
  21. foreach (guiSrc ${GUIplugin})
  22. add_library(${guiSrc} SHARED ${guiSrc}.cc)
  23. target_link_libraries(${guiSrc}
  24. ${GAZEBO_LIBRARIES}
  25. ${Qt5Core_LIBRARIES}
  26. ${Qt5Widgets_LIBRARIES}
  27. ${GAZEBO_LIBRARIES}
  28. )
  29. install (TARGETS ${guiSrc} DESTINATION ${CITYSIM_PLUGIN_INSTALL_DIR})
  30. endforeach ()