Added auto detection of catkin
This commit is contained in:
parent
a6f10be4af
commit
c05b208cde
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user