Skip to content

Commit

Permalink
update cmake scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Jun 7, 2024
1 parent e1793d0 commit a2a6319
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
# Created by the script cgal_create_cmake_script.
# This is the CMake script for compiling a CGAL application.

cmake_minimum_required(VERSION 3.1...3.23)
project(Barycentric_coordinates_3_Examples)
set(CMAKE_CXX_FLAGS "${CMAXE_CXX_FLAGS} -Wall -Wextra -Werror")

cmake_minimum_required(VERSION 3.1...3.15)
set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED)

find_package(CGAL QUIET COMPONENTS Core)
if(CGAL_FOUND)
include(CGAL_CreateSingleSourceCGALProgram)

include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)

create_single_source_cgal_program("tetrahedron_coordinates.cpp")
create_single_source_cgal_program("shape_deformation.cpp")
create_single_source_cgal_program("wachspress_coordinates.cpp")
create_single_source_cgal_program("discrete_harmonic_coordinates.cpp")
create_single_source_cgal_program("mean_value_coordinates.cpp")

else()
message(WARNING "This program requires the CGAL library, and will not be compiled.")
endif()
create_single_source_cgal_program("tetrahedron_coordinates.cpp")
create_single_source_cgal_program("shape_deformation.cpp")
create_single_source_cgal_program("wachspress_coordinates.cpp")
create_single_source_cgal_program("discrete_harmonic_coordinates.cpp")
create_single_source_cgal_program("mean_value_coordinates.cpp")
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
# Created by the script cgal_create_cmake_script.
# This is the CMake script for compiling a CGAL application.

cmake_minimum_required(VERSION 3.1...3.23)
project(Barycentric_coordinates_3_Tests)
set(CMAKE_CXX_FLAGS "${CMAXE_CXX_FLAGS} -Wall -Wextra -Werror")

cmake_minimum_required(VERSION 3.1...3.15)
set(CMAKE_CXX_STANDARD 14)
find_package(CGAL REQUIRED)

find_package(CGAL QUIET COMPONENTS Core)
if(CGAL_FOUND)
include(CGAL_CreateSingleSourceCGALProgram)

include(${CGAL_USE_FILE})
include(CGAL_CreateSingleSourceCGALProgram)

create_single_source_cgal_program("test_tetrahedron_coordinates.cpp")
create_single_source_cgal_program("test_wp_dh_mv_tetrahedron.cpp")
create_single_source_cgal_program("test_wp_weights.cpp")
create_single_source_cgal_program("test_dh_weights.cpp")
create_single_source_cgal_program("test_mv_weights.cpp")
create_single_source_cgal_program("test_edge_cases.cpp")
create_single_source_cgal_program("test_containers.cpp")
create_single_source_cgal_program("test_boundary_coordinates.cpp")

else()
message(WARNING "This program requires the CGAL library, and will not be compiled.")
endif()
create_single_source_cgal_program("test_tetrahedron_coordinates.cpp")
create_single_source_cgal_program("test_wp_dh_mv_tetrahedron.cpp")
create_single_source_cgal_program("test_wp_weights.cpp")
create_single_source_cgal_program("test_dh_weights.cpp")
create_single_source_cgal_program("test_mv_weights.cpp")
create_single_source_cgal_program("test_edge_cases.cpp")
create_single_source_cgal_program("test_containers.cpp")
create_single_source_cgal_program("test_boundary_coordinates.cpp")

0 comments on commit a2a6319

Please sign in to comment.