Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How could I detect that ROS is installed in CMakeLists

Hi!

I need to make universal CMakeLists.txt, able to build package with ROS or not. So I need some conditional variable to detect, that package could be build with ROS:

if(SOMEVAR)
   set(USE_ROS true)
endif()

if(USE_ROS)
   find_package ...
   catkin_package ...
endif()

Thanks!