2017-07-05 23:30:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO PointCloudLibrary/pcl
|
2021-11-05 15:24:45 +08:00
|
|
|
REF f36a69a5e89953708990c4669317f989d532cf08 # pcl-1.12.0
|
|
|
|
SHA512 dbbd0adbb08949ddef2789e0021b6ca9727be33c7193d0bb135c61def09a42ed6a71333f06b6fad407010ecb4b73c19f087f7520386b92a008e90c254eafe422
|
2017-07-05 23:30:18 +08:00
|
|
|
HEAD_REF master
|
2019-05-19 13:58:03 +08:00
|
|
|
PATCHES
|
2021-02-05 05:35:20 +08:00
|
|
|
add-gcc-version-check.patch
|
2021-11-05 15:24:45 +08:00
|
|
|
fix-check-sse.patch
|
2021-04-29 08:38:32 +08:00
|
|
|
fix-find-qhull.patch
|
2021-11-05 15:24:45 +08:00
|
|
|
fix-numeric-literals-flag.patch
|
|
|
|
pcl_config.patch
|
|
|
|
pcl_utils.patch
|
|
|
|
remove-broken-targets.patch
|
|
|
|
fix-cmake_find_library_suffixes.patch
|
2017-06-15 06:46:30 +08:00
|
|
|
)
|
|
|
|
|
2021-04-29 08:38:32 +08:00
|
|
|
file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindQhull.cmake)
|
2017-11-10 16:31:46 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PCL_SHARED_LIBS)
|
2017-06-15 06:46:30 +08:00
|
|
|
|
2020-08-19 06:20:22 +08:00
|
|
|
if ("cuda" IN_LIST FEATURES AND VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
|
|
|
message(FATAL_ERROR "Feature cuda only supports 64-bit compilation.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if ("tools" IN_LIST FEATURES AND VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
message(FATAL_ERROR "Feature tools only supports dynamic build")
|
|
|
|
endif()
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-04-29 08:38:32 +08:00
|
|
|
FEATURES
|
|
|
|
openni2 WITH_OPENNI2
|
|
|
|
qt WITH_QT
|
|
|
|
pcap WITH_PCAP
|
|
|
|
cuda WITH_CUDA
|
|
|
|
cuda BUILD_CUDA
|
|
|
|
cuda BUILD_GPU
|
|
|
|
tools BUILD_tools
|
|
|
|
opengl WITH_OPENGL
|
|
|
|
vtk WITH_VTK
|
2019-08-01 19:39:10 +08:00
|
|
|
)
|
2018-03-02 02:45:41 +08:00
|
|
|
|
2021-11-05 15:24:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
2017-06-15 06:46:30 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
# BUILD
|
|
|
|
-DBUILD_surface_on_nurbs=ON
|
|
|
|
# PCL
|
2017-11-10 16:31:46 +08:00
|
|
|
-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=${PCL_SHARED_LIBS}
|
|
|
|
-DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=${PCL_SHARED_LIBS}
|
2018-10-16 18:44:01 +08:00
|
|
|
-DPCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=${PCL_SHARED_LIBS}
|
2017-11-10 16:31:46 +08:00
|
|
|
-DPCL_SHARED_LIBS=${PCL_SHARED_LIBS}
|
2017-06-15 06:46:30 +08:00
|
|
|
# WITH
|
|
|
|
-DWITH_LIBUSB=OFF
|
2018-03-02 02:45:41 +08:00
|
|
|
-DWITH_PNG=ON
|
2017-06-15 06:46:30 +08:00
|
|
|
-DWITH_QHULL=ON
|
2019-08-14 11:13:55 +08:00
|
|
|
# FEATURES
|
|
|
|
${FEATURE_OPTIONS}
|
2017-06-15 06:46:30 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 15:24:45 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2017-11-10 16:31:46 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-06-15 06:46:30 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-03-15 07:49:54 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2017-11-10 16:31:46 +08:00
|
|
|
|
2020-01-22 02:03:57 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
2018-03-02 02:45:41 +08:00
|
|
|
file(GLOB EXEFILES_RELEASE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
|
|
|
file(GLOB EXEFILES_DEBUG ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
|
|
|
file(COPY ${EXEFILES_RELEASE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/pcl)
|
|
|
|
file(REMOVE ${EXEFILES_RELEASE} ${EXEFILES_DEBUG})
|
|
|
|
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/pcl)
|
|
|
|
endif()
|
|
|
|
|
2020-01-22 02:03:57 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|