mirror of https://github.com/CGAL/cgal
Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main'
This commit is contained in:
commit
1f4a934d0f
|
|
@ -29,12 +29,10 @@
|
||||||
|
|
||||||
#include <CGAL/export/CORE.h>
|
#include <CGAL/export/CORE.h>
|
||||||
|
|
||||||
#ifdef CGAL_TEST_SUITE
|
#ifdef CGAL_CORE_DEBUG
|
||||||
// disabled for the testsuite to avoid `w`
|
|
||||||
#define CGAL_CORE_warning_msg(X ,Y)
|
|
||||||
// if (!(X)) CGAL_error_msg(Y)
|
|
||||||
#else
|
|
||||||
#define CGAL_CORE_warning_msg(X ,Y) CGAL_warning_msg(X ,Y)
|
#define CGAL_CORE_warning_msg(X ,Y) CGAL_warning_msg(X ,Y)
|
||||||
|
#else
|
||||||
|
#define CGAL_CORE_warning_msg(X ,Y)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ function(process_CGAL_subdirectory entry subdir type_name)
|
||||||
make_directory("${CMAKE_BINARY_DIR}/${subdir}/${ENTRY_DIR_NAME}")
|
make_directory("${CMAKE_BINARY_DIR}/${subdir}/${ENTRY_DIR_NAME}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message("\n-- Configuring ${subdir} in ${subdir}/${ENTRY_DIR_NAME}")
|
message("-- Configuring ${subdir} in ${subdir}/${ENTRY_DIR_NAME}")
|
||||||
|
|
||||||
set(source_dir "")
|
set(source_dir "")
|
||||||
if(EXISTS ${entry}/CMakeLists.txt)
|
if(EXISTS ${entry}/CMakeLists.txt)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
cmake_minimum_required(VERSION 3.12...3.31)
|
cmake_minimum_required(VERSION 3.12...3.31)
|
||||||
|
project(CGAL_Demos)
|
||||||
|
|
||||||
if(NOT CGAL_MODULES_DIR)
|
file(GLOB pkgs RELATIVE ${CMAKE_SOURCE_DIR} "*")
|
||||||
find_package(CGAL REQUIRED)
|
list(SORT pkgs)
|
||||||
endif()
|
|
||||||
include(${CGAL_MODULES_DIR}/CGALHelpers.cmake)
|
message("== Generating build files for demos ==")
|
||||||
CGAL_handle_subdirectories(demo demos)
|
foreach(pkg ${pkgs})
|
||||||
|
set(pkg_dir ${CMAKE_SOURCE_DIR}/${pkg})
|
||||||
|
if(IS_DIRECTORY "${pkg_dir}" AND EXISTS "${pkg_dir}/CMakeLists.txt")
|
||||||
|
message("\n-- Configuring ${pkg}")
|
||||||
|
add_subdirectory(${pkg_dir} "${CMAKE_BINARY_DIR}/${pkg}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
message("== Generating build files for done (DONE) ==")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,15 @@
|
||||||
cmake_minimum_required(VERSION 3.12...3.31)
|
cmake_minimum_required(VERSION 3.12...3.31)
|
||||||
if(NOT CGAL_MODULES_DIR)
|
project(CGAL_Examples)
|
||||||
find_package(CGAL REQUIRED)
|
|
||||||
endif()
|
file(GLOB pkgs RELATIVE ${CMAKE_SOURCE_DIR} "*")
|
||||||
include(${CGAL_MODULES_DIR}/CGALHelpers.cmake)
|
list(SORT pkgs)
|
||||||
CGAL_handle_subdirectories(examples examples)
|
|
||||||
|
message("== Generating build files for examples ==")
|
||||||
|
foreach(pkg ${pkgs})
|
||||||
|
set(pkg_dir ${CMAKE_SOURCE_DIR}/${pkg})
|
||||||
|
if(IS_DIRECTORY "${pkg_dir}" AND EXISTS "${pkg_dir}/CMakeLists.txt")
|
||||||
|
message("\n-- Configuring ${pkg}")
|
||||||
|
add_subdirectory(${pkg_dir} "${CMAKE_BINARY_DIR}/${pkg}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
message("== Generating build files for done (DONE) ==")
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,15 @@
|
||||||
cmake_minimum_required(VERSION 3.12...3.31)
|
cmake_minimum_required(VERSION 3.12...3.31)
|
||||||
|
project(CGAL_Tests)
|
||||||
|
|
||||||
|
file(GLOB pkgs RELATIVE ${CMAKE_SOURCE_DIR} "*")
|
||||||
|
list(SORT pkgs)
|
||||||
|
|
||||||
if(NOT CGAL_MODULES_DIR)
|
message("== Generating build files for tests ==")
|
||||||
find_package(CGAL REQUIRED)
|
foreach(pkg ${pkgs})
|
||||||
endif()
|
set(pkg_dir ${CMAKE_SOURCE_DIR}/${pkg})
|
||||||
include(${CGAL_MODULES_DIR}/CGALHelpers.cmake)
|
if(IS_DIRECTORY "${pkg_dir}" AND EXISTS "${pkg_dir}/CMakeLists.txt")
|
||||||
CGAL_handle_subdirectories(test tests)
|
message("\n-- Configuring ${pkg}")
|
||||||
|
add_subdirectory(${pkg_dir} "${CMAKE_BINARY_DIR}/${pkg}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
message("== Generating build files for done (DONE) ==")
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ int main()
|
||||||
}
|
}
|
||||||
|
|
||||||
// create compact metric approximation algorithm instance
|
// create compact metric approximation algorithm instance
|
||||||
std::cout << "create compact vas instance" << std::endl;
|
std::cout << "create compact vsa instance" << std::endl;
|
||||||
Compact_metric_point_proxy error_metric(center_pmap, area_pmap);
|
Compact_metric_point_proxy error_metric(center_pmap, area_pmap);
|
||||||
|
|
||||||
Compact_approx approx(mesh, vpmap, error_metric);
|
Compact_approx approx(mesh, vpmap, error_metric);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue