mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 09:19:07 +08:00
Merge pull request #2220 from UnaNancyOwen/fix_pcl
Change OpenNI2 to feature option
This commit is contained in:
commit
fcfa1e40da
@ -1,7 +1,11 @@
|
||||
Source: pcl
|
||||
Version: 1.8.1-5
|
||||
Version: 1.8.1-6
|
||||
Description: Point Cloud Library (PCL) is open source library for 2D/3D image and point cloud processing.
|
||||
Build-Depends: boost, eigen3, flann, qhull, vtk, openni2
|
||||
Build-Depends: boost, eigen3, flann, qhull, vtk
|
||||
|
||||
Feature: openni2
|
||||
Description: OpenNI2 support for PCL
|
||||
Build-Depends: openni2
|
||||
|
||||
Feature: qt
|
||||
Description: Qt support for PCL
|
||||
|
@ -20,6 +20,11 @@ vcpkg_apply_patches(
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PCL_SHARED_LIBS)
|
||||
|
||||
set(WITH_OPENNI2 OFF)
|
||||
if("openni2" IN_LIST FEATURES)
|
||||
set(WITH_OPENNI2 ON)
|
||||
endif()
|
||||
|
||||
set(WITH_QT OFF)
|
||||
if("qt" IN_LIST FEATURES)
|
||||
set(WITH_QT ON)
|
||||
@ -44,7 +49,7 @@ vcpkg_configure_cmake(
|
||||
# WITH
|
||||
-DWITH_CUDA=OFF
|
||||
-DWITH_LIBUSB=OFF
|
||||
-DWITH_OPENNI2=ON
|
||||
-DWITH_OPENNI2=${WITH_OPENNI2}
|
||||
-DWITH_PCAP=${WITH_PCAP}
|
||||
-DWITH_PNG=OFF
|
||||
-DWITH_QHULL=ON
|
||||
|
Loading…
Reference in New Issue
Block a user