mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 18:47:09 +01:00
[libfreenect2] add opengl and opencl features (#9551)
* add opengl, opencl and cuda features for libfreenect2 * remove cuda feature
This commit is contained in:
parent
615cb6aa24
commit
fe62406f2b
@ -1,5 +1,14 @@
|
|||||||
Source: libfreenect2
|
Source: libfreenect2
|
||||||
Version: 0.2.0-3
|
Version: 0.2.0-4
|
||||||
Build-Depends: libusb, libjpeg-turbo
|
Build-Depends: libusb, libjpeg-turbo
|
||||||
Homepage: https://github.com/OpenKinect/libfreenect2
|
Homepage: https://github.com/OpenKinect/libfreenect2
|
||||||
Description: Open source drivers for the Kinect for Windows v2 device
|
Description: Open source drivers for the Kinect for Windows v2 device
|
||||||
|
Default-Features: opengl
|
||||||
|
|
||||||
|
Feature: opengl
|
||||||
|
Description: OpenGL support for libfreenect2
|
||||||
|
Build-Depends: opengl, glfw3
|
||||||
|
|
||||||
|
Feature: opencl
|
||||||
|
Description: OpenCL support for libfreenect2
|
||||||
|
Build-Depends: opencl
|
||||||
|
@ -18,11 +18,18 @@ string(REPLACE "(WIN32)"
|
|||||||
"(WIN32_DISABLE)" EXAMPLECMAKE "${EXAMPLECMAKE}")
|
"(WIN32_DISABLE)" EXAMPLECMAKE "${EXAMPLECMAKE}")
|
||||||
file(WRITE ${SOURCE_PATH}/examples/CMakeLists.txt "${EXAMPLECMAKE}")
|
file(WRITE ${SOURCE_PATH}/examples/CMakeLists.txt "${EXAMPLECMAKE}")
|
||||||
|
|
||||||
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||||
|
opengl ENABLE_OPENGL
|
||||||
|
opencl ENABLE_OPENCL
|
||||||
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA
|
PREFER_NINJA
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DENABLE_CUDA=OFF
|
-DENABLE_CUDA=OFF
|
||||||
|
# FEATURES
|
||||||
|
${FEATURE_OPTIONS}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user