Skip to content

Commit

Permalink
Adding option to choose if octovis&dynamicEDT3D are built
Browse files Browse the repository at this point in the history
As suggested in an issue I added the option to the main cmakelists :
BUILD_OCTOVIS_SUBPROJECT.
If it's ON (default) everything remains the same, if it's turned off the
octomap project can be built even if no QGLViewer and/or OpenGL are
found on the system.
It also can be used when octomap is used as an external project in a
cmake-project, the option can be passed in the cmake_args.
  • Loading branch information
Caspar Reist committed Jul 3, 2014
1 parent fe68ade commit c7aef99
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ PROJECT( octomap-distribution )

ENABLE_TESTING() # enable CTest environment of subprojects

option(BUILD_OCTOVIS_SUBPROJECT "Build targets from subproject octovis" ON)

ADD_SUBDIRECTORY( octomap )
ADD_SUBDIRECTORY( octovis )
ADD_SUBDIRECTORY( dynamicEDT3D )

if(BUILD_OCTOVIS_SUBPROJECT)
ADD_SUBDIRECTORY( octovis )
ADD_SUBDIRECTORY( dynamicEDT3D )
endif()


0 comments on commit c7aef99

Please sign in to comment.