| 1 |
--- a/CMakeLists.txt |
| 2 |
+++ b/CMakeLists.txt |
| 3 |
@@ -905,7 +905,7 @@ if(WITH_OPENVX) |
| 4 |
endif() |
| 5 |
|
| 6 |
if(WITH_QUIRC) |
| 7 |
- add_subdirectory(3rdparty/quirc) |
| 8 |
+ find_package(quirc CONFIG REQUIRED) |
| 9 |
set(HAVE_QUIRC TRUE) |
| 10 |
endif() |
| 11 |
|
| 12 |
--- a/modules/objdetect/CMakeLists.txt |
| 13 |
+++ b/modules/objdetect/CMakeLists.txt |
| 14 |
@@ -13,7 +13,5 @@ ocv_define_module(objdetect |
| 15 |
) |
| 16 |
|
| 17 |
if(HAVE_QUIRC) |
| 18 |
- get_property(QUIRC_INCLUDE GLOBAL PROPERTY QUIRC_INCLUDE_DIR) |
| 19 |
- ocv_include_directories(${QUIRC_INCLUDE}) |
| 20 |
- ocv_target_link_libraries(${the_module} quirc) |
| 21 |
+ ocv_target_link_libraries(${the_module} quirc::quirc) |
| 22 |
endif() |