ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Check this:

OPTION(BUILD_PACKAGE_X "Build package X")
# switch it ON or OFF depending on what you want
set(BUILD_PACKAGE_X ON)
if (BUILD_PACKAGE_X)

# put all your CMakeLists text

#endif()

Another solution:
put an empty file with the name CATKIN_IGNORE into the package directory.

Check this:Add this to your CMakeLists.txt :

OPTION(BUILD_PACKAGE_X "Build package X")
# switch it ON or OFF depending on what you want
set(BUILD_PACKAGE_X ON)
if (BUILD_PACKAGE_X)

# put all your CMakeLists text

#endif()

Another solution:
put an empty file with the name CATKIN_IGNORE into the package directory.

Add this to your CMakeLists.txt :

OPTION(BUILD_PACKAGE_X "Build package X")
# switch it ON or OFF depending on what you want
set(BUILD_PACKAGE_X ON)
if (BUILD_PACKAGE_X)

# put all paste your CMakeLists text
text here

#endif()

Another solution:
put an empty file with the name CATKIN_IGNORE into the package directory.