Skip to content
Snippets Groups Projects
Commit 20304517 authored by Nikolaus Vahrenkamp's avatar Nikolaus Vahrenkamp
Browse files

fallback to internal version, if qhull is not installed

parent cbabb448
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,15 @@ ENDMACRO(ADD_GRASPSTUDIO_TEST)
########### QHULL #################
OPTION(BUILD_qhull "if on builds qhull external library" OFF)
IF(NOT BUILD_qhull)
find_package(QHULL QUIET)
IF (NOT qhull_FOUND)
MESSAGE (STATUS "Could not find QHULL, building internal version simox-qhull")
SET (BUILD_qhull ON)
SET (BUILD_qhull ON PARENT_SCOPE)
ENDIF()
ENDIF()
IF(BUILD_qhull)
ADD_SUBDIRECTORY(ExternalDependencies/qhull-2003.1)
set(QHULL_LIBRARIES simox-qhull)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment