mirror of https://github.com/CGAL/cgal
79 lines
2.2 KiB
CMake
79 lines
2.2 KiB
CMake
# Created by the script cgal_create_CMakeLists
|
|
# This is the CMake script for compiling a set of CGAL applications.
|
|
|
|
cmake_minimum_required(VERSION 3.1...3.15)
|
|
project( Spatial_searching_Examples )
|
|
|
|
|
|
|
|
|
|
# CGAL and its components
|
|
find_package( CGAL QUIET COMPONENTS )
|
|
|
|
if ( NOT CGAL_FOUND )
|
|
|
|
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
return()
|
|
|
|
endif()
|
|
|
|
find_package(Eigen3 3.1.91) #(requires 3.2.0 or greater)
|
|
|
|
if (MSVC)
|
|
# Turn off VC++ warning
|
|
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244")
|
|
endif()
|
|
|
|
|
|
# include for local directory
|
|
|
|
# include for local package
|
|
|
|
# Creating entries for all .cpp/.C files with "main" routine
|
|
# ##########################################################
|
|
|
|
create_single_source_cgal_program( "circular_query.cpp" )
|
|
|
|
create_single_source_cgal_program( "distance_browsing.cpp" )
|
|
|
|
create_single_source_cgal_program( "iso_rectangle_2_query.cpp" )
|
|
|
|
create_single_source_cgal_program( "nearest_neighbor_searching.cpp" )
|
|
|
|
create_single_source_cgal_program( "searching_with_circular_query.cpp" )
|
|
|
|
create_single_source_cgal_program( "searching_with_point_with_info.cpp" )
|
|
|
|
create_single_source_cgal_program( "searching_with_point_with_info_inplace.cpp" )
|
|
|
|
create_single_source_cgal_program( "searching_with_point_with_info_pmap.cpp" )
|
|
|
|
create_single_source_cgal_program( "searching_surface_mesh_vertices.cpp" )
|
|
|
|
create_single_source_cgal_program( "searching_polyhedron_vertices.cpp" )
|
|
|
|
create_single_source_cgal_program( "searching_polyhedron_vertices_with_fuzzy_sphere.cpp")
|
|
|
|
create_single_source_cgal_program( "user_defined_point_and_distance.cpp" )
|
|
|
|
create_single_source_cgal_program( "using_fair_splitting_rule.cpp" )
|
|
|
|
create_single_source_cgal_program( "weighted_Minkowski_distance.cpp" )
|
|
|
|
|
|
|
|
if (EIGEN3_FOUND)
|
|
|
|
create_single_source_cgal_program( "fuzzy_range_query.cpp" )
|
|
CGAL_target_use_Eigen(fuzzy_range_query)
|
|
|
|
create_single_source_cgal_program( "general_neighbor_searching.cpp" )
|
|
CGAL_target_use_Eigen(general_neighbor_searching)
|
|
|
|
else()
|
|
|
|
message(STATUS "fuzzy_range_query.cpp and general_neighbor_searching.cpp")
|
|
message(STATUS "will not be compiled as they use CGAL::Epick_d which requires the Eigen library.")
|
|
|
|
endif()
|