Added auto detection of catkin

This commit is contained in:
matlabbe 2015-05-20 16:55:56 -04:00
parent a6f10be4af
commit c05b208cde

View File

@ -1,12 +1,13 @@
cmake_minimum_required(VERSION 2.8.3)
OPTION(CATKIN_BUILD "Set to ON to build in a Catkin workspace (ROS)" OFF)
# Detect if it is called by catkin
SET(CATKIN_BUILD ${CATKIN_TOPLEVEL})
IF(NOT CATKIN_BUILD)
#Standalone build
PROJECT( Find-Object )
ELSE()
#Standalone build
#ROS catkin build
PROJECT( find_object_2d )
ENDIF()