mirror of https://github.com/CGAL/cgal
Add a CMakeLists.txt file for STL_Extension tests (needed for TBB)
This commit is contained in:
parent
22e086e2ff
commit
97c0d3f0ce
|
|
@ -757,7 +757,6 @@ Ridges_3/examples/Ridges_3/Compute_Ridges_Umbilics
|
|||
Ridges_3/examples/Ridges_3/Makefile
|
||||
Ridges_3/test/Ridges_3/Makefile
|
||||
Ridges_3/test/Ridges_3/ridge_test
|
||||
STL_Extension/test/STL_Extension/CMakeLists.txt
|
||||
STL_Extension/test/STL_Extension/cgal_test_with_cmake
|
||||
STL_Extension/test/STL_Extension/test_Cache
|
||||
STL_Extension/test/STL_Extension/test_Compact_container
|
||||
|
|
|
|||
|
|
@ -0,0 +1,64 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
project( STL_Extension_test )
|
||||
|
||||
cmake_minimum_required(VERSION 2.6.2)
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
|
||||
cmake_policy(VERSION 2.8.4)
|
||||
else()
|
||||
cmake_policy(VERSION 2.6)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include( ${CGAL_USE_FILE} )
|
||||
|
||||
find_package( TBB QUIET )
|
||||
|
||||
# And add -DCGAL_CONCURRENT_MESH_3 if that option is ON
|
||||
if( TBB_FOUND )
|
||||
include(${TBB_USE_FILE})
|
||||
list(APPEND CGAL_3RD_PARTY_LIBRARIES ${TBB_LIBRARIES})
|
||||
endif()
|
||||
|
||||
include( CGAL_CreateSingleSourceCGALProgram )
|
||||
|
||||
include_directories (BEFORE "../../include")
|
||||
|
||||
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_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" )
|
||||
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_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" )
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
Loading…
Reference in New Issue