mirror of https://github.com/CGAL/cgal
Misc trivial cleaning
This commit is contained in:
parent
9b265fddf8
commit
e93b0b28eb
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef LEXICAL_CAST_HPP
|
#ifndef LEXICAL_CAST_HPP
|
||||||
#define LEXICAL_CAST_HPP
|
#define LEXICAL_CAST_HPP
|
||||||
|
|
||||||
/*! This files provides lexical casts from std::string to any one of the number
|
/*! This file provides lexical casts from std::string to any one of the number
|
||||||
* types we intend to use in the benchmark, and a lexical cast does not exist.
|
* types we intend to use in the benchmark, and a lexical cast does not exist.
|
||||||
* It is inspired by boost::lexical_cast
|
* It is inspired by boost::lexical_cast
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef CGAL_TEST_CONFIGURATION_H
|
#ifndef CGAL_TEST_CONFIGURATION_H
|
||||||
#define CGAL_TEST_CONFIGURATION_H
|
#define CGAL_TEST_CONFIGURATION_H
|
||||||
|
|
||||||
/*! This files contains define statements, include statement, and typedef
|
/*! This file contains define statements, include statement, and typedef
|
||||||
* of the number types, kernel, and traits used.
|
* of the number types, kernel, and traits used.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,4 @@ project(BGL_graphcut_Examples)
|
||||||
find_package(CGAL REQUIRED)
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
create_single_source_cgal_program("alpha_expansion_example.cpp")
|
create_single_source_cgal_program("alpha_expansion_example.cpp")
|
||||||
create_single_source_cgal_program(
|
create_single_source_cgal_program("face_selection_borders_regularization_example.cpp")
|
||||||
"face_selection_borders_regularization_example.cpp")
|
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,10 @@ project(Generalized_map_Tests)
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package(CGAL REQUIRED)
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
|
set(hfiles Generalized_map_2_test.h
|
||||||
set(hfiles Generalized_map_2_test.h Generalized_map_3_test.h
|
Generalized_map_3_test.h
|
||||||
Generalized_map_4_test.h GMap_test_insertions.h)
|
Generalized_map_4_test.h
|
||||||
|
GMap_test_insertions.h)
|
||||||
|
|
||||||
create_single_source_cgal_program("Generalized_map_test.cpp" ${hfiles})
|
create_single_source_cgal_program("Generalized_map_test.cpp" ${hfiles})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,4 @@ target_link_libraries(heat_method_polyhedron PUBLIC CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("heat_method_surface_mesh.cpp")
|
create_single_source_cgal_program("heat_method_surface_mesh.cpp")
|
||||||
target_link_libraries(heat_method_surface_mesh PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(heat_method_surface_mesh PUBLIC CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("heat_method_surface_mesh_direct.cpp")
|
create_single_source_cgal_program("heat_method_surface_mesh_direct.cpp")
|
||||||
target_link_libraries(heat_method_surface_mesh_direct
|
target_link_libraries(heat_method_surface_mesh_direct PUBLIC CGAL::Eigen3_support)
|
||||||
PUBLIC CGAL::Eigen3_support)
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# This files contains definitions needed to use CGAL in a program.
|
# This file contains definitions needed to use CGAL in a program.
|
||||||
# DO NOT EDIT THIS. The definitons have been generated by CMake at configuration time.
|
# DO NOT EDIT THIS. The definitons have been generated by CMake at configuration time.
|
||||||
# This file is loaded by cmake via the command "find_package(CGAL)"
|
# This file is loaded by cmake via the command "find_package(CGAL)"
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# This files contains definitions needed to use CGAL in a program.
|
# This file contains definitions needed to use CGAL in a program.
|
||||||
# DO NOT EDIT THIS. The definitons have been generated by CMake at configuration time.
|
# DO NOT EDIT THIS. The definitons have been generated by CMake at configuration time.
|
||||||
# This file is loaded by cmake via the command "find_package(CGAL)"
|
# This file is loaded by cmake via the command "find_package(CGAL)"
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -360,7 +360,7 @@ if( NOT CGAL_MACROS_FILE_INCLUDED )
|
||||||
VERSION "${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}.${CGAL_BUGFIX_VERSION}"
|
VERSION "${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}.${CGAL_BUGFIX_VERSION}"
|
||||||
COMPATIBILITY SameMajorVersion)
|
COMPATIBILITY SameMajorVersion)
|
||||||
|
|
||||||
# There is also a version of CGALConfig.cmake that is prepared in case CGAL in installed in CMAKE_INSTALL_PREFIX.
|
# There is also a version of CGALConfig.cmake that is prepared in case CGAL is installed in CMAKE_INSTALL_PREFIX.
|
||||||
configure_file("${CGAL_MODULES_DIR}/CGALConfig_install.cmake.in" "${CMAKE_BINARY_DIR}/config/CGALConfig.cmake" @ONLY)
|
configure_file("${CGAL_MODULES_DIR}/CGALConfig_install.cmake.in" "${CMAKE_BINARY_DIR}/config/CGALConfig.cmake" @ONLY)
|
||||||
|
|
||||||
#write prefix exceptions
|
#write prefix exceptions
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
//
|
//
|
||||||
// Author(s) : Michael Hemmer <hemmer@mpi-inf.mpg.de>
|
// Author(s) : Michael Hemmer <hemmer@mpi-inf.mpg.de>
|
||||||
|
|
||||||
// This files adds an optional static cache to convert_to_bfi for Sqrt_extension
|
// This file adds an optional static cache to convert_to_bfi for Sqrt_extension
|
||||||
|
|
||||||
#ifndef CGAL_SQRT_EXTENSION_CONVERT_TO_BFI_H
|
#ifndef CGAL_SQRT_EXTENSION_CONVERT_TO_BFI_H
|
||||||
#define CGAL_SQRT_EXTENSION_CONVERT_TO_BFI_H
|
#define CGAL_SQRT_EXTENSION_CONVERT_TO_BFI_H
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ create_single_source_cgal_program("obb_example.cpp")
|
||||||
create_single_source_cgal_program("obb_with_point_maps_example.cpp")
|
create_single_source_cgal_program("obb_with_point_maps_example.cpp")
|
||||||
create_single_source_cgal_program("rotated_aabb_tree_example.cpp")
|
create_single_source_cgal_program("rotated_aabb_tree_example.cpp")
|
||||||
|
|
||||||
foreach(target obb_example obb_with_point_maps_example
|
foreach(target obb_example obb_with_point_maps_example rotated_aabb_tree_example)
|
||||||
rotated_aabb_tree_example)
|
|
||||||
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,7 @@ create_single_source_cgal_program("point_set_read_xyz.cpp")
|
||||||
create_single_source_cgal_program("point_set_advanced.cpp")
|
create_single_source_cgal_program("point_set_advanced.cpp")
|
||||||
|
|
||||||
set(needed_cxx_features cxx_rvalue_references cxx_variadic_templates)
|
set(needed_cxx_features cxx_rvalue_references cxx_variadic_templates)
|
||||||
create_single_source_cgal_program("point_set_read_ply.cpp" CXX_FEATURES
|
create_single_source_cgal_program("point_set_read_ply.cpp" CXX_FEATURES ${needed_cxx_features})
|
||||||
${needed_cxx_features})
|
|
||||||
|
|
||||||
find_package(Eigen3 3.1.0 QUIET) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0 QUIET) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(normal_estimation_test PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(normal_estimation_test PUBLIC CGAL::Eigen3_support)
|
||||||
|
|
||||||
create_single_source_cgal_program("hierarchy_simplification_test.cpp")
|
create_single_source_cgal_program("hierarchy_simplification_test.cpp")
|
||||||
target_link_libraries(hierarchy_simplification_test
|
target_link_libraries(hierarchy_simplification_test PUBLIC CGAL::Eigen3_support)
|
||||||
PUBLIC CGAL::Eigen3_support)
|
|
||||||
|
|
||||||
create_single_source_cgal_program("smoothing_test.cpp")
|
create_single_source_cgal_program("smoothing_test.cpp")
|
||||||
target_link_libraries(smoothing_test PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(smoothing_test PUBLIC CGAL::Eigen3_support)
|
||||||
|
|
|
||||||
|
|
@ -97,8 +97,7 @@ if(TARGET CGAL::TBB_support)
|
||||||
target_link_libraries(test_hausdorff_bounded_error_distance PUBLIC CGAL::TBB_support)
|
target_link_libraries(test_hausdorff_bounded_error_distance PUBLIC CGAL::TBB_support)
|
||||||
target_link_libraries(test_pmp_distance PUBLIC CGAL::TBB_support)
|
target_link_libraries(test_pmp_distance PUBLIC CGAL::TBB_support)
|
||||||
target_link_libraries(orient_polygon_soup_test PUBLIC CGAL::TBB_support)
|
target_link_libraries(orient_polygon_soup_test PUBLIC CGAL::TBB_support)
|
||||||
target_link_libraries(self_intersection_surface_mesh_test
|
target_link_libraries(self_intersection_surface_mesh_test PUBLIC CGAL::TBB_support)
|
||||||
PUBLIC CGAL::TBB_support)
|
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: Intel TBB was not found. Tests will use sequential code.")
|
message(STATUS "NOTICE: Intel TBB was not found. Tests will use sequential code.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,9 @@ if(NOT TARGET CGAL::SCIP_support)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
create_single_source_cgal_program("polygonal_surface_reconstruction_test.cpp")
|
create_single_source_cgal_program("polygonal_surface_reconstruction_test.cpp")
|
||||||
target_link_libraries(polygonal_surface_reconstruction_test
|
target_link_libraries(polygonal_surface_reconstruction_test PUBLIC CGAL::Eigen3_support)
|
||||||
PUBLIC CGAL::Eigen3_support)
|
|
||||||
if(TARGET CGAL::SCIP_support)
|
if(TARGET CGAL::SCIP_support)
|
||||||
target_link_libraries(polygonal_surface_reconstruction_test
|
target_link_libraries(polygonal_surface_reconstruction_test PUBLIC CGAL::SCIP_support)
|
||||||
PUBLIC CGAL::SCIP_support)
|
|
||||||
else()
|
else()
|
||||||
target_link_libraries(polygonal_surface_reconstruction_test
|
target_link_libraries(polygonal_surface_reconstruction_test PUBLIC CGAL::GLPK_support)
|
||||||
PUBLIC CGAL::GLPK_support)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -29,20 +29,18 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
|
||||||
include_directories(BEFORE ./ ./include ./CGAL_demo)
|
include_directories(BEFORE ./ ./include ./CGAL_demo)
|
||||||
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}")
|
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
|
||||||
# Find CGAL
|
|
||||||
|
|
||||||
option(POLYHEDRON_QTSCRIPT_DEBUGGER
|
option(POLYHEDRON_QTSCRIPT_DEBUGGER
|
||||||
"Activate the use of Qt Script Debugger in Polyhedron_3 demo" OFF)
|
"Activate the use of Qt Script Debugger in Polyhedron_3 demo" OFF)
|
||||||
|
|
||||||
|
# Find CGAL
|
||||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5 ImageIO)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5 ImageIO)
|
||||||
set_package_properties(CGAL PROPERTIES TYPE REQUIRED)
|
set_package_properties(CGAL PROPERTIES TYPE REQUIRED)
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
# Find Qt5 itself
|
|
||||||
|
|
||||||
find_package(
|
# Find Qt5 itself
|
||||||
Qt5 QUIET
|
find_package(Qt5 QUIET
|
||||||
COMPONENTS OpenGL Script Widgets
|
COMPONENTS OpenGL Script Widgets
|
||||||
OPTIONAL_COMPONENTS ScriptTools WebSockets Network)
|
OPTIONAL_COMPONENTS ScriptTools WebSockets Network)
|
||||||
|
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
Qt5 PROPERTIES
|
Qt5 PROPERTIES
|
||||||
|
|
@ -162,7 +160,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
# AUXILIARY LIBRARIES
|
# AUXILIARY LIBRARIES
|
||||||
|
|
||||||
# put s (which are shared libraries) at the same location as
|
# put plugins (which are shared libraries) at the same location as
|
||||||
# executable files
|
# executable files
|
||||||
set(CGAL_POLYHEDRON_DEMO_PLUGINS_DIR "${RUNTIME_OUTPUT_PATH}")
|
set(CGAL_POLYHEDRON_DEMO_PLUGINS_DIR "${RUNTIME_OUTPUT_PATH}")
|
||||||
set(LIBRARY_OUTPUT_PATH "${CGAL_POLYHEDRON_DEMO_PLUGINS_DIR}")
|
set(LIBRARY_OUTPUT_PATH "${CGAL_POLYHEDRON_DEMO_PLUGINS_DIR}")
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,5 @@ project(Set_movable_separability_2_Examples)
|
||||||
find_package(CGAL REQUIRED)
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
create_single_source_cgal_program("top_edges_single_mold_trans_cast.cpp")
|
create_single_source_cgal_program("top_edges_single_mold_trans_cast.cpp")
|
||||||
create_single_source_cgal_program(
|
create_single_source_cgal_program("is_pullout_direction_single_mold_trans_cast.cpp")
|
||||||
"is_pullout_direction_single_mold_trans_cast.cpp")
|
create_single_source_cgal_program("pullout_directions_single_mold_trans_cast.cpp")
|
||||||
create_single_source_cgal_program(
|
|
||||||
"pullout_directions_single_mold_trans_cast.cpp")
|
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,7 @@ find_package(CGAL REQUIRED COMPONENTS Core)
|
||||||
find_package(OSQP QUIET)
|
find_package(OSQP QUIET)
|
||||||
include(CGAL_OSQP_support)
|
include(CGAL_OSQP_support)
|
||||||
if(TARGET CGAL::OSQP_support)
|
if(TARGET CGAL::OSQP_support)
|
||||||
message(STATUS "Found OSQP")
|
set(osqp_targets benchmark_contours benchmark_qp_segments)
|
||||||
|
|
||||||
set(osqp_targets
|
|
||||||
benchmark_contours
|
|
||||||
benchmark_qp_segments)
|
|
||||||
|
|
||||||
foreach(osqp_target ${osqp_targets})
|
foreach(osqp_target ${osqp_targets})
|
||||||
create_single_source_cgal_program("${osqp_target}.cpp")
|
create_single_source_cgal_program("${osqp_target}.cpp")
|
||||||
if(TARGET ${osqp_target})
|
if(TARGET ${osqp_target})
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
set(SuiteSparse_USE_LAPACK_BLAS ON)
|
set(SuiteSparse_USE_LAPACK_BLAS ON)
|
||||||
find_package(SuiteSparse QUIET NO_MODULE
|
find_package(SuiteSparse QUIET NO_MODULE)# 1st: Try to locate the *config.cmake file.
|
||||||
)# 1st: Try to locate the *config.cmake file.
|
|
||||||
if(NOT SuiteSparse_FOUND)
|
if(NOT SuiteSparse_FOUND)
|
||||||
set(SuiteSparse_VERBOSE ON)
|
set(SuiteSparse_VERBOSE ON)
|
||||||
find_package(SuiteSparse QUIET) # 2nd: Use FindSuiteSparse.cmake module
|
find_package(SuiteSparse QUIET) # 2nd: Use FindSuiteSparse.cmake module
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,7 @@ find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("extensive_parameterization_test.cpp")
|
create_single_source_cgal_program("extensive_parameterization_test.cpp")
|
||||||
target_link_libraries(extensive_parameterization_test
|
target_link_libraries(extensive_parameterization_test PUBLIC CGAL::Eigen3_support)
|
||||||
PUBLIC CGAL::Eigen3_support)
|
|
||||||
else()
|
else()
|
||||||
message("NOTICE: The tests require Eigen 3.1 (or greater), and will not be compiled.")
|
message("NOTICE: The tests require Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(T3_demo)
|
cgal_add_compilation_test(T3_demo)
|
||||||
|
|
||||||
else(Qt5_FOUND)
|
else(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
set(TRIANGULATION_3_MISSING_DEPS "")
|
set(TRIANGULATION_3_MISSING_DEPS "")
|
||||||
|
|
||||||
|
|
@ -96,6 +96,4 @@ else(Qt5_FOUND)
|
||||||
|
|
||||||
message("NOTICE: This demo requires ${TRIANGULATION_3_MISSING_DEPS}, and will not be compiled.")
|
message("NOTICE: This demo requires ${TRIANGULATION_3_MISSING_DEPS}, and will not be compiled.")
|
||||||
|
|
||||||
endif(
|
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
CGAL_Qt5_FOUND
|
|
||||||
AND Qt5_FOUND)
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue