-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* need caffe...
- Loading branch information
Showing
2 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
if(VCPKG_TARGET_IS_WINDOWS) | ||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) | ||
endif() | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO CMU-Perceptual-Computing-Lab/openpose | ||
REF 80d4c5f7b25ba4c3bf5745ab7d0e6ccd3db8b242 | ||
SHA512 f6d32a25fdd896c4ee377ba8d4cba9deb0a79da5d491b498f73ed93e0ed73bd6e1c7a8001ccb9a875f95ff2673fa5c278f2d5a50b6b99dbabd93231465adff3e | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
FEATURES | ||
opengl WITH_3D_RENDERER | ||
cuda USE_CUDNN | ||
examples BUILD_EXAMPLES | ||
intel-mkl USE_MKL | ||
python BUILD_PYTHON | ||
) | ||
|
||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
${FEATURE_OPTIONS} | ||
-DWITH_OPENCV_WITH_OPENGL=ON | ||
-DWITH_FLIR_CAMERA=OFF | ||
-DWITH_CERES=ON | ||
-DWITH_EIGEN:STRING="FIND" | ||
-DPROFILER_ENABLED=OFF | ||
-DBUILD_DOCS=OFF | ||
-DDL_FRAMEWORK:STRING="CAFFE" # Caffe? NVCaffe? TensorFlow? | ||
) | ||
vcpkg_cmake_install() | ||
vcpkg_copy_pdbs() | ||
# vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake PACKAGE_NAME OpenPose) | ||
vcpkg_fixup_pkgconfig() # pkg_check_modules(libcpuinfo) | ||
|
||
file(REMOVE_RECURSE | ||
"${CURRENT_PACKAGES_DIR}/debug/include" | ||
) | ||
|
||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"name": "openpose", | ||
"version-date": "2023-09-29", | ||
"description": "OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation", | ||
"homepage": "https://github.com/CMU-Perceptual-Computing-Lab/openpose", | ||
"license": null, | ||
"supports": "windows | linux | osx", | ||
"dependencies": [ | ||
{ | ||
"name": "ceres", | ||
"features": [ | ||
"suitesparse" | ||
] | ||
}, | ||
"eigen3", | ||
"gflags", | ||
"glog", | ||
{ | ||
"name": "libigl", | ||
"features": [ | ||
"xml" | ||
] | ||
}, | ||
{ | ||
"name": "opencv4", | ||
"features": [ | ||
"opengl" | ||
] | ||
}, | ||
"protobuf", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
], | ||
"features": { | ||
"cuda": { | ||
"description": "Build with CUDA,cuDNN", | ||
"dependencies": [ | ||
{ | ||
"name": "ceres", | ||
"features": [ | ||
"cuda" | ||
] | ||
}, | ||
"cuda", | ||
"cudnn" | ||
] | ||
}, | ||
"examples": { | ||
"description": "Build OpenPose examples" | ||
}, | ||
"intel-mkl": { | ||
"description": "Build with Intel MKL" | ||
}, | ||
"opencl": { | ||
"description": "Build with OpenCL", | ||
"dependencies": [ | ||
"opencl" | ||
] | ||
}, | ||
"opengl": { | ||
"description": "Build with OpenGL", | ||
"dependencies": [ | ||
"freeglut", | ||
"glew", | ||
{ | ||
"name": "libigl", | ||
"features": [ | ||
"opengl" | ||
] | ||
} | ||
] | ||
}, | ||
"python": { | ||
"description": "Build OpenPose python", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-get-python-packages", | ||
"host": true | ||
} | ||
] | ||
} | ||
} | ||
} |