[cgal] feature qt5 (#3646)

This commit is contained in:
cDc 2018-06-06 12:48:03 +03:00 committed by Robert Schumacher
parent 6f6101065f
commit 47d904608c
2 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,8 @@
Source: cgal
Version: 4.12
Build-Depends: mpfr, mpir, zlib, qt5, boost-format, boost-container, boost-iterator, boost-variant, boost-any, boost-unordered, boost-random
Build-Depends: mpfr, mpir, zlib, boost-format, boost-container, boost-iterator, boost-variant, boost-any, boost-unordered, boost-random, boost-foreach, boost-graph, boost-heap, boost-logic
Description: The Computational Geometry Algorithms Library (CGAL) is a C++ library that aims to provide easy access to efficient and reliable algorithms in computational geometry.
Feature: qt
Build-Depends: qt5
Description: Qt GUI support for CGAL

View File

@ -8,11 +8,17 @@ vcpkg_from_github(
HEAD_REF master
)
set(WITH_CGAL_Qt5 OFF)
if("qt5" IN_LIST FEATURES)
set(WITH_CGAL_Qt5 ON)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCGAL_INSTALL_CMAKE_DIR=share/cgal
-DWITH_CGAL_Qt5=${WITH_CGAL_Qt5}
)
vcpkg_install_cmake()