# Created by the script cgal_create_cmake_script # This is the CMake script for compiling a CGAL application. project( Mesh_3_example ) CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5) include_directories(../../include) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) if ( COMMAND cmake_policy ) cmake_policy( SET CMP0003 NEW ) endif() find_package(CGAL COMPONENTS ImageIO) if ( CGAL_FOUND ) include( ${CGAL_USE_FILE} ) include( CGAL_CreateSingleSourceCGALProgram ) # Compilable examples create_single_source_cgal_program( "mesh_implicit_sphere.cpp" ) # create_single_source_cgal_program( "mesh_implicit_domains.cpp" "implicit_functions.cpp" ) if( CGAL_ImageIO_USE_ZLIB ) create_single_source_cgal_program( "mesh_3D_image.cpp" ) else() message( STATUS "NOTICE: The example mesh_3D_image.cpp needs CGAL_ImageIO to be configured with ZLIB support, and will not be compiled." ) endif() create_single_source_cgal_program( "mesh_polyhedral_domain.cpp" ) # create_single_source_cgal_program( "mesh_polyhedral_implicit_function.cpp" ) # create_single_source_cgal_program( "mesh_polyhedral_surface_tolerance_region.cpp" ) # create_single_source_cgal_program( "mesh_polyhedral_edge_tolerance_region.cpp" ) else() message(STATUS "This program requires the CGAL library, and will not be compiled.") endif()