Add definition CGAL_LINKED_WITH_LASLIB

This commit is contained in:
Simon Giraudot 2017-01-24 15:50:45 +01:00
parent 952c5a4984
commit f4fea04a4d
3 changed files with 6 additions and 0 deletions

View File

@ -28,5 +28,6 @@ find_library(LASLIB_LIBRARIES
if(LASLIB_LIBRARIES)
set(LASLIB_FOUND TRUE)
set(LASLIB_USE_FILE "UseLASLIB")
endif()

View File

@ -0,0 +1,4 @@
# This module setups the compiler for using LASlib library.
# It assumes that find_package(LASLIB) was already called.
add_definitions(-DCGAL_LINKED_WITH_LASLIB)

View File

@ -85,6 +85,7 @@ if ( CGAL_FOUND )
find_package(LASLIB)
if (LASLIB_FOUND)
include(${LASLIB_USE_FILE})
include_directories(${LASLIB_INCLUDE_DIR})
include_directories(${LASZIP_INCLUDE_DIR})
create_single_source_cgal_program( "read_las_example.cpp" )