2021-01-29 11:23:57 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-11-06 03:17:22 +08:00
|
|
|
@@ -917,7 +917,7 @@ if(WITH_OPENVX)
|
2021-01-29 11:23:57 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_QUIRC)
|
|
|
|
- add_subdirectory(3rdparty/quirc)
|
|
|
|
+ find_package(quirc CONFIG REQUIRED)
|
|
|
|
set(HAVE_QUIRC TRUE)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
--- a/modules/objdetect/CMakeLists.txt
|
|
|
|
+++ b/modules/objdetect/CMakeLists.txt
|
2024-11-06 03:17:22 +08:00
|
|
|
@@ -13,7 +13,5 @@ ocv_define_module(objdetect
|
2022-08-05 08:21:59 +08:00
|
|
|
)
|
2021-01-29 11:23:57 +08:00
|
|
|
|
|
|
|
if(HAVE_QUIRC)
|
|
|
|
- get_property(QUIRC_INCLUDE GLOBAL PROPERTY QUIRC_INCLUDE_DIR)
|
|
|
|
- ocv_include_directories(${QUIRC_INCLUDE})
|
|
|
|
- ocv_target_link_libraries(${the_module} quirc)
|
|
|
|
+ ocv_target_link_libraries(${the_module} quirc::quirc)
|
|
|
|
endif()
|