mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 19:50:45 +08:00
Merge pull request #2173 from lp55/master
Adding package features for Dlib and OpenCV
This commit is contained in:
commit
d8ef6f95b4
@ -2,3 +2,10 @@ Source: dlib
|
||||
Version: 19.7
|
||||
Build-Depends: libjpeg-turbo, libpng, sqlite3, fftw3
|
||||
Description: Modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++
|
||||
|
||||
Feature: blas
|
||||
Description: BLAS support for dlib
|
||||
|
||||
Feature: cuda
|
||||
Build-Depends: cuda
|
||||
Description: CUDA support for dlib
|
||||
|
@ -17,6 +17,16 @@ file(READ "${SOURCE_PATH}/dlib/CMakeLists.txt" DLIB_CMAKE)
|
||||
string(REPLACE "PNG_LIBRARY" "PNG_LIBRARIES" DLIB_CMAKE "${DLIB_CMAKE}")
|
||||
file(WRITE "${SOURCE_PATH}/dlib/CMakeLists.txt" "${DLIB_CMAKE}")
|
||||
|
||||
set(WITH_BLAS OFF)
|
||||
if("blas" IN_LIST FEATURES)
|
||||
set(WITH_BLAS ON)
|
||||
endif()
|
||||
|
||||
set(WITH_CUDA OFF)
|
||||
if("cuda" IN_LIST FEATURES)
|
||||
set(WITH_CUDA ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
@ -25,12 +35,11 @@ vcpkg_configure_cmake(
|
||||
-DDLIB_USE_FFTW=ON
|
||||
-DDLIB_PNG_SUPPORT=ON
|
||||
-DDLIB_JPEG_SUPPORT=ON
|
||||
-DDLIB_USE_BLAS=OFF
|
||||
-DDLIB_USE_BLAS=${WITH_BLAS}
|
||||
-DDLIB_USE_LAPACK=OFF
|
||||
-DDLIB_USE_CUDA=OFF
|
||||
-DDLIB_USE_CUDA=${WITH_CUDA}
|
||||
-DDLIB_GIF_SUPPORT=OFF
|
||||
-DDLIB_USE_MKL_FFT=OFF
|
||||
#-DDLIB_USE_CUDA=ON
|
||||
OPTIONS_DEBUG
|
||||
-DDLIB_ENABLE_ASSERTS=ON
|
||||
#-DDLIB_ENABLE_STACK_TRACE=ON
|
||||
|
@ -21,3 +21,7 @@ Description: Qt GUI support for opencv
|
||||
Feature: vtk
|
||||
Build-Depends: vtk
|
||||
Description: vtk support for opencv
|
||||
|
||||
Feature: gdcm
|
||||
Build-Depends: gdcm2
|
||||
Description: GDCM support for opencv
|
||||
|
@ -58,6 +58,11 @@ if("vtk" IN_LIST FEATURES)
|
||||
set(WITH_VTK ON)
|
||||
endif()
|
||||
|
||||
set(WITH_GDCM OFF)
|
||||
if("gdcm" IN_LIST FEATURES)
|
||||
set(WITH_GDCM ON)
|
||||
endif()
|
||||
|
||||
set(WITH_MSMF ON)
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
set(WITH_MSMF OFF)
|
||||
@ -112,6 +117,7 @@ vcpkg_configure_cmake(
|
||||
-DWITH_OPENGL=ON
|
||||
-DWITH_QT=${WITH_QT}
|
||||
-DWITH_VTK=${WITH_VTK}
|
||||
-DWITH_GDCM=${WITH_GDCM}
|
||||
OPTIONS_DEBUG
|
||||
-DINSTALL_HEADERS=OFF
|
||||
-DINSTALL_OTHER=OFF
|
||||
|
Loading…
Reference in New Issue
Block a user