aboutsummaryrefslogtreecommitdiff
path: root/ports/zxing-cpp/0003-fix-dependency-bigint.patch
blob: 1601d3e399be6da7318b175d2403e2ef3ab07629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54071bd..0edd0e9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,6 +44,12 @@ if(WIN32)
     set(CMAKE_DEBUG_POSTFIX -debug)
 endif()
 
+# Bigint
+find_package(bigint CONFIG REQUIRED)
+
+include_directories(${BIGINT_INCLUDE_DIRS})
+link_libraries(${BIGINT_LIBRARIES})
+
 # OpenCV classes
 if(WITH_OPENCV)
     find_package(OpenCV REQUIRED)
diff --git a/source_files.cmake b/source_files.cmake
index db3d8d4..39abe82 100644
--- a/source_files.cmake
+++ b/source_files.cmake
@@ -1,28 +1,4 @@
 set(LIBZXING_FILES
-    core/src/bigint/BigInteger.cc
-    core/src/bigint/BigInteger.cc
-    core/src/bigint/BigInteger.hh
-    core/src/bigint/BigInteger.hh
-    core/src/bigint/BigIntegerAlgorithms.cc
-    core/src/bigint/BigIntegerAlgorithms.cc
-    core/src/bigint/BigIntegerAlgorithms.hh
-    core/src/bigint/BigIntegerAlgorithms.hh
-    core/src/bigint/BigIntegerLibrary.hh
-    core/src/bigint/BigIntegerLibrary.hh
-    core/src/bigint/BigIntegerUtils.cc
-    core/src/bigint/BigIntegerUtils.cc
-    core/src/bigint/BigIntegerUtils.hh
-    core/src/bigint/BigIntegerUtils.hh
-    core/src/bigint/BigUnsigned.cc
-    core/src/bigint/BigUnsigned.cc
-    core/src/bigint/BigUnsigned.hh
-    core/src/bigint/BigUnsigned.hh
-    core/src/bigint/BigUnsignedInABase.cc
-    core/src/bigint/BigUnsignedInABase.cc
-    core/src/bigint/BigUnsignedInABase.hh
-    core/src/bigint/BigUnsignedInABase.hh
-    core/src/bigint/NumberlikeArray.hh
-    core/src/bigint/NumberlikeArray.hh
     core/src/zxing/aztec/AztecDetectorResult.cpp
     core/src/zxing/aztec/AztecDetectorResult.h
     core/src/zxing/aztec/AztecReader.cpp