1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 5810b0c..04315e3 100644
5 @@ -771,7 +771,7 @@ if(WITH_OPENVX)
9 - add_subdirectory(3rdparty/quirc)
10 + find_package(quirc CONFIG REQUIRED)
13 # ----------------------------------------------------------------------------
14 diff --git a/modules/objdetect/CMakeLists.txt b/modules/objdetect/CMakeLists.txt
15 index 414e578..4f26d75 100644
16 --- a/modules/objdetect/CMakeLists.txt
17 +++ b/modules/objdetect/CMakeLists.txt
18 @@ -2,7 +2,5 @@ set(the_description "Object Detection")
19 ocv_define_module(objdetect opencv_core opencv_imgproc opencv_calib3d WRAP java python js)
22 - get_property(QUIRC_INCLUDE GLOBAL PROPERTY QUIRC_INCLUDE_DIR)
23 - ocv_include_directories(${QUIRC_INCLUDE})
24 - ocv_target_link_libraries(${the_module} quirc)
25 + ocv_target_link_libraries(${the_module} quirc::quirc)