Fix CMakeLists.txt

This commit is contained in:
Andreas Fabri 2019-04-15 12:06:50 +02:00
parent 41033a80be
commit 016df7e33c
1 changed files with 11 additions and 3 deletions

View File

@ -20,9 +20,17 @@ endif()
find_package( CGAL QUIET)
if ( CGAL_FOUND )
include( ${CGAL_USE_FILE} )
include( CGAL_CreateSingleSourceCGALProgram )
include_directories (BEFORE "../../include")
find_package( Boost REQUIRED )
if ( NOT Boost_FOUND )
message(STATUS "This project requires the Boost library, and will not be compiled.")
return()
endif()
create_single_source_cgal_program( "Point_WKT.cpp" )
create_single_source_cgal_program( "Polygon_WKT.cpp" )
create_single_source_cgal_program( "Linestring_WKT.cpp" )