opencv.cmake 659 Bytes
Newer Older
Jacob Becker's avatar
Jacob Becker committed
1
superbuild_add_project(opencv
Jacob Becker's avatar
Jacob Becker committed
2
  DEPENDS python numpy
Ben Boeckel's avatar
Ben Boeckel committed
3
  CMAKE_ARGS
Ben Boeckel's avatar
Ben Boeckel committed
4 5 6
    -DBUILD_PERF_TESTS:BOOL=OFF
    -DBUILD_TESTS:BOOL=OFF
    -DBUILD_opencv_flann:BOOL=OFF
Ben Boeckel's avatar
Ben Boeckel committed
7 8
    -DBUILD_opencv_hdf:BOOL=OFF
    -DBUILD_opencv_dnn:BOOL=OFF
9
    -DBUILD_opencv_videoio:BOOL=OFF
Ben Boeckel's avatar
Ben Boeckel committed
10
    -DWITH_CUDA:BOOL=OFF
Ben Boeckel's avatar
Ben Boeckel committed
11 12
    -DWITH_GTK:BOOL=OFF
    -DWITH_FFMPEG:BOOL=OFF
Ben Boeckel's avatar
Ben Boeckel committed
13
    -DWITH_VTK:BOOL=OFF
Jacob Becker's avatar
Jacob Becker committed
14 15
    -DBUILD_opencv_highgui=OFF
    -DWITH_QT=OFF
16
    -DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=<INSTALL_DIR>/lib/python2.7/site-packages/numpy/core/include
Ben Boeckel's avatar
Ben Boeckel committed
17
    -DCMAKE_INSTALL_NAME_DIR:PATH=<INSTALL_DIR>/lib)
18 19 20 21 22

if (WIN32)
  superbuild_add_extra_cmake_args(
    -DOpenCV_DIR:PATH=<INSTALL_DIR>/share)
endif ()