mirror of https://github.com/CGAL/cgal
57 lines
1.7 KiB
CMake
57 lines
1.7 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.15)
|
|
project( Spatial_searching_ )
|
|
|
|
|
|
find_package(CGAL QUIET COMPONENTS Core )
|
|
|
|
if ( CGAL_FOUND )
|
|
|
|
include(${CGAL_USE_FILE})
|
|
|
|
find_package(Eigen3 3.1.91) #(requires 3.2.0 or greater)
|
|
|
|
include_directories (BEFORE "include")
|
|
|
|
create_single_source_cgal_program( "Compare_ANN_STANN_CGAL.cpp" )
|
|
create_single_source_cgal_program( "nanoflan.cpp" )
|
|
create_single_source_cgal_program( "binary.cpp" )
|
|
create_single_source_cgal_program( "nearest_neighbor_searching_50.cpp" )
|
|
create_single_source_cgal_program( "nearest_neighbor_searching_inplace_50.cpp" )
|
|
create_single_source_cgal_program( "Nearest_neighbor_searching.cpp" )
|
|
create_single_source_cgal_program( "Nearest_neighbor_searching_2D.cpp" )
|
|
create_single_source_cgal_program( "Nearest_neighbor_searching_2D_user_defined.cpp" )
|
|
create_single_source_cgal_program( "Split_data.cpp" )
|
|
create_single_source_cgal_program( "nn3cgal.cpp" )
|
|
create_single_source_cgal_program( "nn4cgal.cpp" )
|
|
create_single_source_cgal_program( "nn3nanoflan.cpp" )
|
|
create_single_source_cgal_program( "sizeof.cpp" )
|
|
create_single_source_cgal_program( "deque.cpp" )
|
|
foreach(target
|
|
Compare_ANN_STANN_CGAL
|
|
nanoflan
|
|
binary
|
|
nearest_neighbor_searching_50
|
|
nearest_neighbor_searching_inplace_50
|
|
Nearest_neighbor_searching
|
|
Nearest_neighbor_searching_2D
|
|
Nearest_neighbor_searching_2D_user_defined
|
|
Split_data
|
|
nn3cgal
|
|
nn4cgal
|
|
nn3nanoflan
|
|
sizeof
|
|
deque)
|
|
CGAL_target_use_Eigen(${target})
|
|
endforeach()
|
|
|
|
else()
|
|
|
|
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
|
|
endif()
|
|
|