mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-14 00:24:38 +00:00
Must check for the existence of a bundled dep before we use it, since e.g. Debian has to strip some files for license and policy reasons.
29 lines
766 B
CMake
29 lines
766 B
CMake
# Copyright 2019, 2020, Collabora, Ltd.
|
|
# Copyright 2019, 2020, Visual Computing Lab, ISTI - Italian National Research Council
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
# GLEW - required
|
|
set(GLEW_DIR ${EXTERNAL_DIR}/glew-2.1.0)
|
|
include(${EXTERNAL_DIR}/glew.cmake)
|
|
|
|
|
|
# VCGLib -- required
|
|
if(NOT VCGDIR)
|
|
get_filename_component(VCGDIR "${CMAKE_CURRENT_LIST_DIR}/vcglib" ABSOLUTE)
|
|
if(NOT EXISTS ${VCGDIR})
|
|
set(VCGDIR NOTFOUND)
|
|
endif()
|
|
endif()
|
|
set(VCGDIR "${VCGDIR}")
|
|
|
|
if(NOT VCGDIR)
|
|
message(FATAL_ERROR "VCGLib not found. Please clone recursively the MeshLab repo.")
|
|
endif()
|
|
include_directories(${VCGDIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
# Eigen3 - required
|
|
set(EIGEN_DIR ${VCGDIR}/eigenlib)
|
|
include(${EXTERNAL_DIR}/eigen.cmake)
|
|
include_directories(${EIGEN_INCLUDE_DIRS})
|