examples/alphashapes/CMakeLists.txt
author Aravindakshan Babu <akshan@stanford.edu>
Fri, 02 Jul 2010 17:08:02 -0700
branchdev
changeset 216 7aefb2d67203
parent 174 3f1034dca432
child 237 92b59e2e6fb3
permissions -rw-r--r--
Made the data argument in Point's __init__method to be an optional argument by making it a boost::python::optional.

set                             (libraries                      ${libraries} 
                                                                ${Boost_SERIALIZATION_LIBRARY}
                                                                ${Boost_PROGRAM_OPTIONS_LIBRARY})

# Build compare-diagrams
add_executable                  (compare-diagrams               compare-diagrams.cpp)
target_link_libraries           (compare-diagrams               ${libraries})

# Add targets that depend on CGAL
if                              (CGAL_FOUND)
    set                         (targets                        alphashapes3d
                                                                alphashapes2d
                                                                alphashapes3d-cohomology
                                                                #alpharadius
                                )
    add_definitions             (${CGAL_CXX_FLAGS_INIT})
    include_directories         (${CGAL_INCLUDE_DIRS})

    foreach                     (t ${targets})
        add_executable          (${t} ${t}.cpp)
        target_link_libraries   (${t} ${libraries} ${CGAL_LIBRARY})
    endforeach                  (t ${targets})
else                            (CGAL_FOUND)
    message(STATUS "CGAL not found, therefore alphashapes will not be built.")
endif                           (CGAL_FOUND)