diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-11-11 12:30:05 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-11 12:30:05 -0800 |
| commit | d8ef6f95b44344be581748a448eec12d3fb91cde (patch) | |
| tree | ca512b50d70c3786098ee303bce375044188e8d8 /ports/dlib | |
| parent | dcf5e8a770bd52b5589768556294031a867ba918 (diff) | |
| parent | 72f10db01caf7dfa0e8c14c4256401b3f4ea70a2 (diff) | |
| download | vcpkg-d8ef6f95b44344be581748a448eec12d3fb91cde.tar.gz vcpkg-d8ef6f95b44344be581748a448eec12d3fb91cde.zip | |
Merge pull request #2173 from lp55/master
Adding package features for Dlib and OpenCV
Diffstat (limited to 'ports/dlib')
| -rw-r--r-- | ports/dlib/CONTROL | 7 | ||||
| -rw-r--r-- | ports/dlib/portfile.cmake | 15 |
2 files changed, 19 insertions, 3 deletions
diff --git a/ports/dlib/CONTROL b/ports/dlib/CONTROL index 87d81875b..c773d8d28 100644 --- a/ports/dlib/CONTROL +++ b/ports/dlib/CONTROL @@ -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 diff --git a/ports/dlib/portfile.cmake b/ports/dlib/portfile.cmake index 4234e3e4b..e80176b7d 100644 --- a/ports/dlib/portfile.cmake +++ b/ports/dlib/portfile.cmake @@ -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 |
