mirror of https://github.com/CGAL/cgal
Do for example what we did for test
This commit is contained in:
parent
16f61704da
commit
3b1b080330
|
|
@ -5,10 +5,16 @@ project( Periodic_3_mesh_3_Examples )
|
|||
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET )
|
||||
if(POLICY CMP0074)
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
endif()
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS ImageIO )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
include( ${CGAL_USE_FILE} )
|
||||
else()
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue