mirror of https://github.com/CGAL/cgal
fix warnings
This commit is contained in:
parent
9135bbee26
commit
da5298f123
|
|
@ -207,6 +207,7 @@ public:
|
|||
Source_point_handle& operator=(const Source_point_handle& other)
|
||||
{
|
||||
m_iterator = other.m_iterator;
|
||||
return *this;
|
||||
}
|
||||
|
||||
const Face_location& operator*() const
|
||||
|
|
@ -2104,7 +2105,7 @@ public:
|
|||
*/
|
||||
Source_point_handle add_source_point(face_descriptor f, Barycentric_coordinate location)
|
||||
{
|
||||
add_source_point(std::make_pair(f, location));
|
||||
return add_source_point(std::make_pair(f, location));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -0,0 +1,56 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
project( Surface_mesh_shortest_path_ )
|
||||
|
||||
cmake_minimum_required(VERSION 2.6.2)
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
|
||||
cmake_policy(VERSION 2.8.4)
|
||||
else()
|
||||
cmake_policy(VERSION 2.6)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include( ${CGAL_USE_FILE} )
|
||||
|
||||
include( CGAL_CreateSingleSourceCGALProgram )
|
||||
|
||||
include_directories (BEFORE "../../include")
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
create_single_source_cgal_program( "Surface_mesh_shortest_path_test_1.cpp" )
|
||||
create_single_source_cgal_program( "Surface_mesh_shortest_path_test_2.cpp" )
|
||||
create_single_source_cgal_program( "Surface_mesh_shortest_path_test_3.cpp" )
|
||||
create_single_source_cgal_program( "Surface_mesh_shortest_path_test_4.cpp" )
|
||||
create_single_source_cgal_program( "Surface_mesh_shortest_path_traits_test.cpp" )
|
||||
|
||||
|
||||
# Link with Boost.ProgramOptions (optional)
|
||||
find_package(Boost QUIET COMPONENTS program_options)
|
||||
if(Boost_PROGRAM_OPTIONS_FOUND)
|
||||
if( CGAL_AUTO_LINK_ENABLED )
|
||||
message( STATUS "Boost.ProgramOptions library: found" )
|
||||
else()
|
||||
message( STATUS "Boost.ProgramOptions library: ${Boost_PROGRAM_OPTIONS_LIBRARY}" )
|
||||
endif()
|
||||
add_definitions( "-DCGAL_USE_BOOST_PROGRAM_OPTIONS" )
|
||||
list(APPEND CGAL_3RD_PARTY_LIBRARIES ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
create_single_source_cgal_program( "TestMesh.cpp" )
|
||||
else()
|
||||
message(STATUS "NOTICE: Example TestMesh.cpp requires boost program_option and will not be compiled.")
|
||||
endif()
|
||||
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
|
|
@ -51,7 +51,6 @@ BOOST_AUTO_TEST_CASE( test_find_nearest_face_location_on_surface )
|
|||
|
||||
typedef CGAL::AABB_face_graph_triangle_primitive<Polyhedron_3, VPM> AABB_face_graph_primitive;
|
||||
typedef CGAL::AABB_traits<Kernel, AABB_face_graph_primitive> AABB_face_graph_traits;
|
||||
typedef CGAL::AABB_tree<AABB_face_graph_traits> AABB_face_graph_tree;
|
||||
|
||||
Traits traits;
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ BOOST_AUTO_TEST_CASE( test_find_nearest_face_location_above_surface )
|
|||
|
||||
typedef CGAL::AABB_face_graph_triangle_primitive<Polyhedron_3, VPM> AABB_face_graph_primitive;
|
||||
typedef CGAL::AABB_traits<Kernel, AABB_face_graph_primitive> AABB_face_graph_traits;
|
||||
typedef CGAL::AABB_tree<AABB_face_graph_traits> AABB_face_graph_tree;
|
||||
|
||||
Traits traits;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue