]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
2 | index 9cd2b4e..b34f20e 100644 | |
3 | --- a/CMakeLists.txt | |
4 | +++ b/CMakeLists.txt | |
5 | @@ -776,7 +776,7 @@ if(WITH_OPENVX) | |
6 | endif() | |
7 | ||
8 | if(WITH_QUIRC) | |
9 | - add_subdirectory(3rdparty/quirc) | |
10 | + find_package(quirc CONFIG REQUIRED) | |
11 | set(HAVE_QUIRC TRUE) | |
12 | endif() | |
13 | ||
14 | diff --git a/modules/objdetect/CMakeLists.txt b/modules/objdetect/CMakeLists.txt | |
15 | index 3fa0c5d..f4c0ad6 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 objc python js) | |
20 | ||
21 | if(HAVE_QUIRC) | |
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) | |
26 | endif() |