opencv/modules/core/cmake/parallel/init.cmake
2021-02-15 17:07:36 +00:00

9 lines
263 B
CMake

macro(ocv_add_core_parallel_backend backend_id cond_var)
if(${cond_var})
include("${CMAKE_CURRENT_LIST_DIR}/detect_${backend_id}.cmake")
endif()
endmacro()
ocv_add_core_parallel_backend("tbb" WITH_TBB)
ocv_add_core_parallel_backend("openmp" WITH_OPENMP)