mirror of https://github.com/CGAL/cgal
encode LEDA/Core dependency
This commit is contained in:
parent
0e6abc499f
commit
ce7cb41d5b
|
|
@ -5,6 +5,11 @@ cmake_minimum_required(VERSION 3.1...3.23)
|
|||
project(Hyperbolic_triangulation_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
find_package(LEDA QUIET)
|
||||
|
||||
create_single_source_cgal_program("ht2_example.cpp")
|
||||
create_single_source_cgal_program("ht2_example_color.cpp")
|
||||
if (CGAL_Core_FOUND OR LEDA_FOUND)
|
||||
create_single_source_cgal_program("ht2_example.cpp")
|
||||
create_single_source_cgal_program("ht2_example_color.cpp")
|
||||
else()
|
||||
message("NOTICE: Examples require CGAL_Core (or LEDA), and will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -5,11 +5,16 @@ cmake_minimum_required(VERSION 3.1...3.23)
|
|||
project(Hyperbolic_triangulation_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
find_package(LEDA QUIET)
|
||||
|
||||
create_single_source_cgal_program("ht2_test_clear.cpp")
|
||||
create_single_source_cgal_program("ht2_test_locate.cpp")
|
||||
create_single_source_cgal_program("ht2_test_remove.cpp")
|
||||
create_single_source_cgal_program("ht2_test_swap.cpp")
|
||||
create_single_source_cgal_program("ht2_test_copy.cpp")
|
||||
create_single_source_cgal_program("ht2_test_hyperbolic_circulator.cpp")
|
||||
create_single_source_cgal_program("ht2_test_insert_degenerate.cpp")
|
||||
if (CGAL_Core_FOUND OR LEDA_FOUND)
|
||||
create_single_source_cgal_program("ht2_test_clear.cpp")
|
||||
create_single_source_cgal_program("ht2_test_locate.cpp")
|
||||
create_single_source_cgal_program("ht2_test_remove.cpp")
|
||||
create_single_source_cgal_program("ht2_test_swap.cpp")
|
||||
create_single_source_cgal_program("ht2_test_copy.cpp")
|
||||
create_single_source_cgal_program("ht2_test_hyperbolic_circulator.cpp")
|
||||
create_single_source_cgal_program("ht2_test_insert_degenerate.cpp")
|
||||
else()
|
||||
message("NOTICE: Tests require CGAL_Core (or LEDA), and will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue