meshlab/src/external_common.cmake
Ryan Pavlik bb15e2287f Modularize build system usage of dependencies.
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.
2020-12-02 12:20:42 -06:00

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})