mirror of https://github.com/CGAL/cgal
75 lines
3.2 KiB
CMake
75 lines
3.2 KiB
CMake
# Created by the script cgal_create_cmake_script
|
|
# This is the CMake script for compiling a CGAL application.
|
|
|
|
cmake_minimum_required(VERSION 3.12...3.31)
|
|
project(STL_Extension_Tests)
|
|
|
|
find_package(CGAL REQUIRED)
|
|
|
|
find_package(TBB QUIET)
|
|
include(CGAL_TBB_support)
|
|
if(NOT TARGET CGAL::TBB_support)
|
|
message(STATUS "NOTICE: Tests are not using TBB.")
|
|
endif()
|
|
|
|
create_single_source_cgal_program("issue_7400.cpp")
|
|
create_single_source_cgal_program("test_Boolean_tag.cpp")
|
|
create_single_source_cgal_program("test_Cache.cpp")
|
|
create_single_source_cgal_program("test_Compact_container.cpp")
|
|
create_single_source_cgal_program("test_Compact_container_is_used.cpp")
|
|
create_single_source_cgal_program("test_complexity_tags.cpp")
|
|
create_single_source_cgal_program("test_composition.cpp")
|
|
create_single_source_cgal_program("test_Concatenate_iterator.cpp")
|
|
create_single_source_cgal_program("test_Concurrent_compact_container.cpp")
|
|
if(TARGET CGAL::TBB_support)
|
|
target_link_libraries(test_Concurrent_compact_container PRIVATE CGAL::TBB_support)
|
|
endif()
|
|
create_single_source_cgal_program("test_dispatch_output.cpp")
|
|
create_single_source_cgal_program("test_Flattening_iterator.cpp")
|
|
create_single_source_cgal_program("test_Handle_with_policy.cpp")
|
|
create_single_source_cgal_program("test_In_place_list.cpp")
|
|
create_single_source_cgal_program("test_is_hashable.cpp")
|
|
create_single_source_cgal_program("test_is_iterator.cpp")
|
|
create_single_source_cgal_program("test_is_streamable.cpp")
|
|
create_single_source_cgal_program("test_lexcompare_outputrange.cpp")
|
|
create_single_source_cgal_program("test_Modifiable_priority_queue.cpp")
|
|
create_single_source_cgal_program("test_multiset.cpp")
|
|
create_single_source_cgal_program("test_cgal_named_params.cpp")
|
|
|
|
add_executable(test_multiset_cc "test_multiset.cpp")
|
|
target_link_libraries(test_multiset_cc PRIVATE CGAL::CGAL)
|
|
target_compile_options(test_multiset_cc PRIVATE -DCGAL_MULTISET_USE_COMPACT_CONTAINER_AS_DEFAULT)
|
|
cgal_add_test(test_multiset_cc)
|
|
add_to_cached_list(CGAL_EXECUTABLE_TARGETS test_multiset_cc)
|
|
|
|
create_single_source_cgal_program("test_N_tuple.cpp")
|
|
create_single_source_cgal_program("test_namespaces.cpp")
|
|
create_single_source_cgal_program("test_Nested_iterator.cpp")
|
|
create_single_source_cgal_program("test_Object.cpp")
|
|
create_single_source_cgal_program("test_stl_extension.cpp")
|
|
create_single_source_cgal_program("test_type_traits.cpp")
|
|
create_single_source_cgal_program("test_Uncertain.cpp")
|
|
create_single_source_cgal_program("test_vector.cpp")
|
|
create_single_source_cgal_program("test_join_iterators.cpp")
|
|
create_single_source_cgal_program("test_for_each.cpp")
|
|
create_single_source_cgal_program("test_skiplist.cpp")
|
|
create_single_source_cgal_program("test_leak.cpp")
|
|
create_single_source_cgal_program("test_nth_element.cpp")
|
|
create_single_source_cgal_program("test_fwd_make_array.cpp")
|
|
|
|
if(TARGET CGAL::TBB_support)
|
|
message(STATUS "Found TBB")
|
|
target_link_libraries(test_for_each PRIVATE CGAL::TBB_support)
|
|
endif()
|
|
|
|
find_package(OpenMesh QUIET)
|
|
if(OpenMesh_FOUND)
|
|
message(STATUS "Found OpenMesh")
|
|
include(CGAL_OpenMesh_support)
|
|
|
|
create_single_source_cgal_program("test_hash_OpenMesh.cpp")
|
|
target_link_libraries(test_hash_OpenMesh PRIVATE CGAL::OpenMesh_support)
|
|
else()
|
|
message(STATUS "NOTICE: Tests that use OpenMesh will not be compiled.")
|
|
endif()
|