Skip to content

Commit

Permalink
Add support build option to PCL port
Browse files Browse the repository at this point in the history
Add support build options (pcap, qt) to PCL port.
  • Loading branch information
UnaNancyOwen committed Oct 30, 2017
1 parent 7c3f469 commit 2d021f6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
12 changes: 10 additions & 2 deletions ports/pcl/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Source: pcl
Version: 1.8.1-2
Build-Depends: boost, eigen3, flann, qhull, vtk, openni2, qt5, winpcap
Version: 1.8.1-3
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

Feature: qt
Description: Qt support for PCL
Build-Depends: vtk[qt]

Feature: pcap
Description: PCAP support for PCL
Build-Depends: winpcap
14 changes: 12 additions & 2 deletions ports/pcl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(LIBRARY_LINKAGE OFF)
endif()

set(WITH_QT OFF)
if("qt" IN_LIST FEATURES)
set(WITH_QT ON)
endif()

set(WITH_PCAP OFF)
if("pcap" IN_LIST FEATURES)
set(WITH_PCAP ON)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
Expand All @@ -50,10 +60,10 @@ vcpkg_configure_cmake(
-DWITH_CUDA=OFF
-DWITH_LIBUSB=OFF
-DWITH_OPENNI2=ON
-DWITH_PCAP=ON
-DWITH_PCAP=${WITH_PCAP}
-DWITH_PNG=OFF
-DWITH_QHULL=ON
-DWITH_QT=ON
-DWITH_QT=${WITH_QT}
-DWITH_VTK=ON
)

Expand Down

0 comments on commit 2d021f6

Please sign in to comment.