forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[quirc, opencv4] Use a cmake package for quirc and devendor quirc fro…
…m opencv4.
- Loading branch information
1 parent
68a7495
commit d683d97
Showing
6 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 16c0ede..78532d1 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -763,7 +763,7 @@ if(WITH_OPENVX) | ||
endif() | ||
|
||
if(WITH_QUIRC) | ||
- add_subdirectory(3rdparty/quirc) | ||
+ find_package(quirc CONFIG REQUIRED) | ||
set(HAVE_QUIRC TRUE) | ||
endif() | ||
# ---------------------------------------------------------------------------- | ||
diff --git a/modules/objdetect/CMakeLists.txt b/modules/objdetect/CMakeLists.txt | ||
index 414e578..4f26d75 100644 | ||
--- a/modules/objdetect/CMakeLists.txt | ||
+++ b/modules/objdetect/CMakeLists.txt | ||
@@ -2,7 +2,5 @@ set(the_description "Object Detection") | ||
ocv_define_module(objdetect opencv_core opencv_imgproc opencv_calib3d WRAP java python js) | ||
|
||
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
cmake_minimum_required(VERSION 3.19) | ||
|
||
project(quirc C) | ||
|
||
add_library(quirc | ||
lib/decode.c | ||
lib/identify.c | ||
lib/quirc.c | ||
lib/version_db.c | ||
lib/decode.c | ||
lib/identify.c | ||
lib/quirc.c | ||
lib/version_db.c | ||
lib/quirc.h | ||
) | ||
|
||
target_include_directories(quirc INTERFACE $<INSTALL_INTERFACE:include>) | ||
|
||
install(TARGETS quirc | ||
RUNTIME DESTINATION bin | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib) | ||
EXPORT quirc-targets | ||
RUNTIME DESTINATION bin | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib) | ||
|
||
install(FILES lib/quirc.h DESTINATION include) | ||
|
||
install(FILES ${PROJECT_SOURCE_DIR}/lib/quirc.h DESTINATION include) | ||
install(EXPORT quirc-targets | ||
FILE quirc-config.cmake | ||
NAMESPACE quirc:: | ||
DESTINATION share/quirc | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: quirc | ||
Version: 1.1 | ||
Port-Version: 1 | ||
Port-Version: 2 | ||
Description: quirc is one of the C library available for scanning QR Codes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters