Example with parallel build

This commit is contained in:
Simon Giraudot 2020-03-05 10:40:56 +01:00
parent 2818986299
commit 3f28ea958f
2 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,11 @@ create_single_source_cgal_program( "iso_rectangle_2_query.cpp" )
create_single_source_cgal_program( "nearest_neighbor_searching.cpp" )
find_package( TBB QUIET )
if(TBB_FOUND)
cgal_target_use_TBB(nearest_neighbor_searching)
endif()
create_single_source_cgal_program( "searching_with_circular_query.cpp" )
create_single_source_cgal_program( "searching_with_point_with_info.cpp" )

View File

@ -20,6 +20,9 @@ int main() {
Tree tree(points.begin(), points.end());
// The tree can be built in parallel
tree.build<CGAL::Parallel_if_available_tag>();
Point_d query(0,0);
// Initialize the search structure, and search all N points