Professional Documents
Culture Documents
CMake Lists
CMake Lists
cmake_minimum_required(VERSION 2.8.3)
set(CATKIN_TOPLEVEL TRUE)
else()
# use either CMAKE_PREFIX_PATH explicitly passed to CMake as a command line
argument
# or CMAKE_PREFIX_PATH from the environment
if(NOT DEFINED CMAKE_PREFIX_PATH)
if(NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")
if(NOT WIN32)
string(REPLACE ":" ";" CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
else()
set(CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
endif()
endif()
endif()
if(NOT catkin_FOUND)
message(FATAL_ERROR "find_package(catkin) failed. catkin was neither found in
the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh
was sourced before.")
endif()
endif()
catkin_workspace()