opencv: enable experimental opencl gpu module via option
Closes Homebrew/homebrew#16474. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
df83da38f3
commit
f9be547b88
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ class Opencv < Formula
|
|||
option '32-bit'
|
||||
option 'with-qt', 'Build the Qt4 backend to HighGUI'
|
||||
option 'with-tbb', 'Enable parallel code in OpenCV using Intel TBB'
|
||||
option 'with-opencl', 'Enable gpu code in OpenCV using OpenCL'
|
||||
|
||||
depends_on 'cmake' => :build
|
||||
depends_on 'pkg-config' => :build
|
||||
|
@ -50,6 +51,7 @@ class Opencv < Formula
|
|||
end
|
||||
args << '-DWITH_QT=ON' if build.include? 'with-qt'
|
||||
args << '-DWITH_TBB=ON' if build.include? 'with-tbb'
|
||||
args << '-DWITH_OPENCL=ON' if build.include? 'with-opencl'
|
||||
|
||||
# The CMake `FindPythonLibs` Module is dumber than a bag of hammers when
|
||||
# more than one python installation is available---for example, it clings
|
||||
|
|
Loading…
Reference in a new issue