Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #126 from sebastic/openscenegraph
Browse files Browse the repository at this point in the history
Enable OpenSceneGraph support when available.
  • Loading branch information
vmora committed Sep 1, 2016
2 parents bd9f8cb + 65b053b commit acc29ae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Expand Up @@ -106,6 +106,17 @@ if( NOT ${GMP_FOUND} OR NOT ${MPFR_FOUND} )
endif()


#-- OpenScenegraph -----------------------------------------
find_package( OpenSceneGraph COMPONENTS osgDB osgUtil )
if( ${OPENSCENEGRAPH_FOUND} )
message( STATUS "OPENSCENEGRAPH_INCLUDE_DIRS = ${OPENSCENEGRAPH_INCLUDE_DIRS}" )
message( STATUS "OPENSCENEGRAPH_LIBRARIES = ${OPENSCENEGRAPH_LIBRARIES}" )
set( SFCGAL_WITH_OSG ON )

include_directories( SYSTEM ${OPENSCENEGRAPH_INCLUDE_DIRS} )
endif()


#-- find CGAL ---------------------------------------------
option( CGAL_USE_AUTOLINK "disable CGAL autolink" OFF )
if( ${CGAL_USE_AUTOLINK} )
Expand Down

0 comments on commit acc29ae

Please sign in to comment.