Added CGAL_USE_FILE + added option use_cgal dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Fri Oct 26 11:45:58 2012 -0700 (2012-10-26)
branchdev
changeset 2710cdf9e9eed48
parent 270 91c35fefb54e
child 272 29306411272b
Added CGAL_USE_FILE + added option use_cgal
CMakeLists.txt
bindings/python/CMakeLists.txt
examples/alphashapes/CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Sun Jun 10 18:54:26 2012 -0700
     1.2 +++ b/CMakeLists.txt	Fri Oct 26 11:45:58 2012 -0700
     1.3 @@ -5,6 +5,7 @@
     1.4  option                      (counters           "Build Dionysus with counters on"       OFF)
     1.5  option                      (debug              "Build Dionysus with debugging on"      OFF)
     1.6  option                      (optimize           "Build Dionysus with optimization"      ON)
     1.7 +option                      (use_cgal           "Build examples and python bindings that use CGAL"       ON)
     1.8  option                      (use_dsrpdb         "Build examples that use DSR-PDB"       OFF)
     1.9  option                      (use_synaps         "Build examples that use SYNAPS"        OFF)
    1.10  
    1.11 @@ -17,7 +18,9 @@
    1.12  endif                       (use_dsrpdb)
    1.13  
    1.14  # CGAL
    1.15 -find_package                (CGAL)
    1.16 +if                          (use_cgal)
    1.17 +    find_package            (CGAL QUIET)
    1.18 +endif                       (use_cgal)
    1.19  #add_definitions             (-DCGAL_NO_ASSERTIONS -DCGAL_NO_PRECONDITIONS)
    1.20  
    1.21  # SYNAPS
     2.1 --- a/bindings/python/CMakeLists.txt	Sun Jun 10 18:54:26 2012 -0700
     2.2 +++ b/bindings/python/CMakeLists.txt	Fri Oct 26 11:45:58 2012 -0700
     2.3 @@ -22,6 +22,8 @@
     2.4  set                         (bindings_libraries ${libraries})
     2.5  
     2.6  if                          (CGAL_FOUND)
     2.7 +    include                 (${CGAL_USE_FILE})
     2.8 +
     2.9      set                     (sources            ${sources}
    2.10                                                  alphashapes3d.cpp
    2.11                                                  alphashapes2d.cpp)
     3.1 --- a/examples/alphashapes/CMakeLists.txt	Sun Jun 10 18:54:26 2012 -0700
     3.2 +++ b/examples/alphashapes/CMakeLists.txt	Fri Oct 26 11:45:58 2012 -0700
     3.3 @@ -8,6 +8,8 @@
     3.4  
     3.5  # Add targets that depend on CGAL
     3.6  if                              (CGAL_FOUND)
     3.7 +    include                     (${CGAL_USE_FILE})
     3.8 +
     3.9      set                         (targets                        alphashapes3d
    3.10                                                                  alphashapes2d
    3.11                                                                  alphashapes3d-cohomology