--- a/CMakeLists.txt Sun Jun 10 18:54:26 2012 -0700
+++ b/CMakeLists.txt Fri Oct 26 11:45:58 2012 -0700
@@ -5,6 +5,7 @@
option (counters "Build Dionysus with counters on" OFF)
option (debug "Build Dionysus with debugging on" OFF)
option (optimize "Build Dionysus with optimization" ON)
+option (use_cgal "Build examples and python bindings that use CGAL" ON)
option (use_dsrpdb "Build examples that use DSR-PDB" OFF)
option (use_synaps "Build examples that use SYNAPS" OFF)
@@ -17,7 +18,9 @@
endif (use_dsrpdb)
# CGAL
-find_package (CGAL)
+if (use_cgal)
+ find_package (CGAL QUIET)
+endif (use_cgal)
#add_definitions (-DCGAL_NO_ASSERTIONS -DCGAL_NO_PRECONDITIONS)
# SYNAPS
--- a/bindings/python/CMakeLists.txt Sun Jun 10 18:54:26 2012 -0700
+++ b/bindings/python/CMakeLists.txt Fri Oct 26 11:45:58 2012 -0700
@@ -22,6 +22,8 @@
set (bindings_libraries ${libraries})
if (CGAL_FOUND)
+ include (${CGAL_USE_FILE})
+
set (sources ${sources}
alphashapes3d.cpp
alphashapes2d.cpp)
--- a/examples/alphashapes/CMakeLists.txt Sun Jun 10 18:54:26 2012 -0700
+++ b/examples/alphashapes/CMakeLists.txt Fri Oct 26 11:45:58 2012 -0700
@@ -8,6 +8,8 @@
# Add targets that depend on CGAL
if (CGAL_FOUND)
+ include (${CGAL_USE_FILE})
+
set (targets alphashapes3d
alphashapes2d
alphashapes3d-cohomology