set(OPENCV_FORCE_3RDPARTY_BUILD ON)
set(BUILD_ZLIB OFF)
set(BUILD_TIFF OFF)
set(BUILD_OPENJPEG OFF)
set(BUILD_JASPER OFF)
set(BUILD_JPEG ON)
set(BUILD_PNG OFF)
set(BUILD_OPENEXR OFF)
set(BUILD_WEBP OFF)
set(BUILD_TBB OFF)
set(BUILD_IPP_IW OFF)
set(BUILD_ITT OFF)

# Disable everything
set(WITH_1394 OFF)
set(WITH_AVFOUNDATION OFF)
set(WITH_CAP_IOS OFF)
set(WITH_CAROTENE OFF)
set(WITH_CPUFEATURES OFF)
set(WITH_VTK OFF)
set(WITH_CUDA OFF)
set(WITH_CUFFT OFF)
set(WITH_CUBLAS OFF)
set(WITH_CUDNN OFF)
set(WITH_NVCUVID OFF)
set(WITH_FFMPEG OFF)
set(WITH_GSTREAMER OFF)
set(WITH_GTX OFF)
set(WITH_GTX_2_X OFF)
set(WITH_IPP OFF)
set(WITH_HALIDE OFF)
set(WITH_VULKAN OFF)
set(WITH_OPENVINO OFF)
set(WITH_WEBNN OFF)
set(WITH_JASPER OFF)
set(WITH_OPENJPEG OFF)
set(WITH_WEBP OFF)
set(WITH_OPENEXR OFF)
set(WITH_OPENVX OFF)
set(WITH_OPENNI OFF)
set(WITH_OPENNI2 OFF)
set(WITH_PNG OFF)
set(WITH_GDCM OFF)
set(WITH_ARAVIS OFF)
set(WITH_QT OFF)
set(WITH_WIN32UI OFF)
set(WITH_TBB OFF)
set(WITH_OPENMP OFF)
set(WITH_PTHREADS_PF OFF)
set(WITH_V4L OFF)
set(WITH_DSHOW OFF)
set(WITH_MSMF OFF)
set(WITH_MSMF_DXVA OFF)
set(WITH_XIMEA OFF)
set(WITH_UEYE OFF)
set(WITH_XINE OFF)
set(WITH_CLP OFF)
set(WITH_OPENCL OFF)
set(WITH_OPENCL_SVM OFF)
set(WITH_OPENCLAMDFFT OFF)
set(WITH_OPENCLAMDBLAS OFF)
set(WITH_DIRECTX OFF)
set(WITH_OPENCL_D3D11_NV OFF)
set(WITH_LIBREALSENSE OFF)
set(WITH_VA OFF)
set(WITH_VA_INTEL OFF)
set(WITH_MFX OFF)
set(WITH_GDAL OFF)
set(WITH_GPHOTO2 OFF)
set(WITH_LAPACK OFF)
set(WITH_ITT OFF)
set(WITH_PROTOPUF OFF)
set(WITH_IMGCODEC_HDR OFF)
set(WITH_IMGCODEC_SUNRASTER OFF)
set(WITH_IMGCODEC_PXM OFF)
set(WITH_IMGCODEC_PFM OFF)
set(WITH_QUIRC OFF)
set(WITH_ANDRIOD_MEDIANDK OFF)
set(WITH_ANDRIOD_NATIVE_CAMERA OFF)
set(WITH_TENGINE OFF)
set(WITH_ONNX OFF)

# OpenCV build components
set(BUILD_SHARED_LIBS OFF)
set(BUILD_opencv_apps OFF)
set(BUILD_opencv_js OFF)
set(BUILD_ANDROID_PROJECTS OFF)
set(BUILD_ANDROID_EXAMPLES OFF)
set(BUILD_DOCS OFF)
set(BUILD_EXAMPLES OFF)
set(BUILD_PACKAGE OFF)
set(BUILD_PERF_TESTS OFF)
set(BUILD_TESTS OFF)
set(BUILD_WITH_DEBUG_INFO OFF)
set(BUILD_WITH_STATIC_CRT OFF)
set(BUILD_WITH_DYNAMIC_IPP OFF)
set(BUILD_FAT_JAVA_LIB OFF)
set(BUILD_ANDROID_SERVICE OFF)
set(BUILD_CUDA_STUBS OFF)
set(BUILD_JAVA OFF)
set(BUILD_OBJC OFF)
set(BUILD_KOTLIN_EXTENSIONS OFF)

# Options of interest
set(WITH_OPENGL OFF) # TODO(tumbar) See if we can support this bare metal
set(WITH_EIGEN OFF) # TODO(tumbar) is this what we want
set(WITH_JPEG ON)

#add_subdirectory(opencv)

set(CMAKE_INSTALL_PREFIX ./install)
set(BUILD_SHARED_LIBS OFF)
set(BUILD_opencv_python_bindings_generator OFF)
set(BUILD_JAVA OFF)
set(BUILD_TESTS OFF)
set(BUILD_opencv_apps OFF)
set(BUILD_opencv_java_bindings_generator OFF)
set(BUILD_opencv_ml OFF)
set(WITH_FFMPEG OFF)
set(WITH_EIGEN OFF)
set(BUILD_IPP_IW OFF)
set(BUILD_ITT OFF)
set(BUILD_PERF_TESTS OFF)
set(BUILD_PROTOBUF OFF)
set(OPENCV_FORCE_3RDPARTY_BUILD ON)
set(BUILD_opencv_calib3d ON)
set(BUILD_opencv_dnn ON)
set(BUILD_opencv_features2d ON)
set(BUILD_opencv_flann ON)
set(BUILD_opencv_gapi OFF)
set(BUILD_opencv_highgui OFF)
set(BUILD_opencv_imgcodecs ON)
set(BUILD_opencv_imgproc ON)
set(BUILD_opencv_java_bindings_generator OFF)
set(BUILD_opencv_objdetect ON)
set(BUILD_opencv_photo ON)
set(BUILD_opencv_stitching OFF)
set(BUILD_opencv_ts ON)
set(BUILD_opencv_video ON)
set(BUILD_opencv_videoio ON)
set(BUILD_opencv_js_bindings_generator OFF)
set(BUILD_opencv_objc_bindings_generator OFF)
set(CPACK_BINARY_STGZ OFF)
set(CPACK_BINARY_TGZ OFF)
set(CPACK_BINARY_TZ OFF)
set(CPACK_SOURCE_TBZ2 OFF)
set(CPACK_SOURCE_TGZ OFF)
set(CPACK_SOURCE_TXZ OFF)
set(CPACK_SOURCE_TZ OFF)
set(CV_ENABLE_INTRINSICS OFF)
set(CV_TRACE OFF)
set(ENABLE_CCACHE OFF)
set(ENABLE_OMIT_FRAME_POINTER OFF)
set(ENABLE_PIC OFF)
set(ENABLE_PRECOMPILED_HEADERS OFF)
set(OPENCL_FOUND OFF)
set(OPENCV_DNN_OPENCL OFF)
set(OPENCV_GENERATE_SETUPVARS OFF)
set(VIDEOIO_ENABLE_PLUGINS ON)
set(VIDEOIO_ENABLE_STRICT_PLUGIN_CHECK ON)
set(WITH_1394 OFF)
set(WITH_CAROTENE OFF)
set(WITH_ADE OFF)
set(WITH_GSTREAMER OFF)
set(WITH_GTK OFF)
set(WITH_IMGCODEC_HDR ON)
set(WITH_IMGCODEC_PFM ON)
set(WITH_IMGCODEC_PXM ON)
set(WITH_IMGCODEC_SUNRASTER OFF)
set(WITH_IPP OFF)
set(WITH_ITT OFF)
set(WITH_JASPER OFF)
set(WITH_JPEG ON)
set(WITH_OPENJPEG OFF)
set(WITH_LAPACK OFF)
set(WITH_OPENCL OFF)
set(WITH_OPENCLAMDBLAS OFF)
set(WITH_OPENCLAMDFFT OFF)
set(WITH_OPENEXR OFF)
set(WITH_PNG ON)
set(WITH_PROTOBUF OFF)
set(WITH_PTHREADS_PF OFF)
set(WITH_QUIRC OFF)
set(WITH_TIFF OFF)
set(WITH_V4L OFF)
set(WITH_VTK OFF)
set(WITH_WEBP OFF)
set(PARALLEL_ENABLE_PLUGINS OFF)
set(CMAKE_SYSTEM_NAME:STRING Generic)
set(CMAKE_BUILD_TYPE:STRING None)
set(CMAKE_VERBOSE_MAKEFILE:BOOL on)
set(C_HAS_MFPU_NEON 0)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
set(OPENCV_DISABLE_THREAD_SUPPORT ON)
