examples/alphashapes/CMakeLists.txt
author Dmitriy Morozov <dmitriy@mrzv.org>
Mon, 27 Nov 2017 10:26:59 -0800
changeset 293 bc7bd0ac9af6
parent 291 5d387c35465b
child 300 d24de31c84a6
permissions -rw-r--r--
Add CGAL pre-4.11 support back to e/a/alphashapes3d-periodic

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)
    include                     (${CGAL_USE_FILE})

    set                         (targets                        alphashapes3d
                                                                alphashapes2d
                                                                alphashapes3d-cohomology
                                                                alphashapes3d-periodic
                                                                alphashapes2d-periodic
                                                                #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} ${CGAL_3RD_PARTY_LIBRARIES})
    endforeach                  (t ${targets})
else                            (CGAL_FOUND)
    message(STATUS "CGAL not found, therefore alphashapes will not be built.")
endif                           (CGAL_FOUND)