mirror of https://github.com/CGAL/cgal
68 lines
2.9 KiB
CMake
68 lines
2.9 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.1...3.23)
|
|
project( STL_Extension_Tests )
|
|
|
|
|
|
find_package(CGAL REQUIRED)
|
|
find_package( TBB QUIET )
|
|
include(CGAL_TBB_support)
|
|
|
|
find_package(OpenMesh QUIET)
|
|
|
|
if(OpenMesh_FOUND)
|
|
include(UseOpenMesh)
|
|
add_definitions(-DCGAL_USE_OPENMESH)
|
|
else()
|
|
message(STATUS "Tests that use OpenMesh will not be compiled.")
|
|
endif()
|
|
|
|
|
|
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 PUBLIC 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_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 PUBLIC CGAL::CGAL )
|
|
target_compile_options( test_multiset_cc PUBLIC -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" )
|
|
if(TARGET CGAL::TBB_support)
|
|
target_link_libraries(test_for_each PUBLIC CGAL::TBB_support)
|
|
endif()
|
|
|
|
if(OpenMesh_FOUND)
|
|
create_single_source_cgal_program("test_hash_OpenMesh.cpp")
|
|
target_link_libraries(test_hash_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
|
|
endif()
|