Commit d4465c46 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'findlibigl' into 'master'

add a CMake finder for libigl

See merge request !34
parents 766caeff 7197b572
if(LIBIGL_INCLUDE_DIR)
set(LIBIGL_FOUND TRUE)
set(LIBIGL_INCLUDE_DIRS "${LIBIGL_INCLUDE_DIR}")
else()
find_path(LIBIGL_INCLUDE_DIR
NAMES igl/igl_inline.h
PATHS "${CMAKE_SOURCE_DIR}/libs/libigl/include")
set(LIBIGL_INCLUDE_DIRS "${LIBIGL_INCLUDE_DIR}")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LIBIGL DEFAULT_MSG LIBIGL_INCLUDE_DIR)
mark_as_advanced(LIBIGL_INCLUDE_DIR)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment