examples/alphashapes/CMakeLists.txt
author Christos Mantoulidis <cmad@stanford.edu>
Tue, 28 Jul 2009 10:58:53 -0700
branchdev
changeset 153 7731c42892de
parent 131 d9e050258358
child 174 3f1034dca432
permissions -rw-r--r--
Modified WeightedRips::generate() to incorporate the simplex-appearance-value computation (before it would have to be done explicitly by the user by a for-loop after the call to generate())

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
                                                                #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)