mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 15:06:50 +08:00
Provide a debian folder to allow build of upstream package
This commit is contained in:
67
distros/debian/patches/enable_utilities.diff
Normal file
67
distros/debian/patches/enable_utilities.diff
Normal file
@@ -0,0 +1,67 @@
|
||||
--- a/src/misc_utilities/CMakeLists.txt
|
||||
+++ b/src/misc_utilities/CMakeLists.txt
|
||||
@@ -1,28 +1,28 @@
|
||||
|
||||
-ADD_EXECUTABLE( sortstate EXCLUDE_FROM_ALL sortstate.cpp )
|
||||
-TARGET_LINK_LIBRARIES(sortstate
|
||||
- openalpr-static
|
||||
+ADD_EXECUTABLE( sortstate-openalpr-utils sortstate.cpp )
|
||||
+TARGET_LINK_LIBRARIES(sortstate-openalpr-utils
|
||||
+ openalpr
|
||||
support
|
||||
${OpenCV_LIBS}
|
||||
${Tesseract_LIBRARIES}
|
||||
)
|
||||
|
||||
-ADD_EXECUTABLE( classifychars EXCLUDE_FROM_ALL classifychars.cpp )
|
||||
-TARGET_LINK_LIBRARIES(classifychars
|
||||
- openalpr-static
|
||||
+ADD_EXECUTABLE( classifychars-openalpr-utils classifychars.cpp )
|
||||
+TARGET_LINK_LIBRARIES(classifychars-openalpr-utils
|
||||
+ openalpr
|
||||
support
|
||||
${OpenCV_LIBS}
|
||||
${Tesseract_LIBRARIES}
|
||||
)
|
||||
|
||||
|
||||
-ADD_EXECUTABLE(benchmark EXCLUDE_FROM_ALL
|
||||
+ADD_EXECUTABLE(benchmark-openalpr-utils
|
||||
benchmarks/benchmark.cpp
|
||||
benchmarks/benchmark_utils.cpp
|
||||
benchmarks/endtoendtest.cpp
|
||||
)
|
||||
-TARGET_LINK_LIBRARIES(benchmark
|
||||
- openalpr-static
|
||||
+TARGET_LINK_LIBRARIES(benchmark-openalpr-utils
|
||||
+ openalpr
|
||||
support
|
||||
pthread
|
||||
${OpenCV_LIBS}
|
||||
@@ -30,16 +30,22 @@
|
||||
)
|
||||
|
||||
|
||||
-ADD_EXECUTABLE( prepcharsfortraining EXCLUDE_FROM_ALL prepcharsfortraining.cpp )
|
||||
-TARGET_LINK_LIBRARIES(prepcharsfortraining
|
||||
+ADD_EXECUTABLE( prepcharsfortraining-openalpr-utils prepcharsfortraining.cpp )
|
||||
+TARGET_LINK_LIBRARIES(prepcharsfortraining-openalpr-utils
|
||||
support
|
||||
${OpenCV_LIBS}
|
||||
)
|
||||
|
||||
|
||||
-ADD_EXECUTABLE( tagplates EXCLUDE_FROM_ALL tagplates.cpp )
|
||||
-TARGET_LINK_LIBRARIES(tagplates
|
||||
+ADD_EXECUTABLE( tagplates-openalpr-utils tagplates.cpp )
|
||||
+TARGET_LINK_LIBRARIES(tagplates-openalpr-utils
|
||||
support
|
||||
${OpenCV_LIBS}
|
||||
)
|
||||
|
||||
+install (TARGETS sortstate-openalpr-utils DESTINATION bin)
|
||||
+install (TARGETS classifychars-openalpr-utils DESTINATION bin)
|
||||
+install (TARGETS benchmark-openalpr-utils DESTINATION bin)
|
||||
+install (TARGETS prepcharsfortraining-openalpr-utils DESTINATION bin)
|
||||
+install (TARGETS tagplates-openalpr-utils DESTINATION bin)
|
||||
+
|
Reference in New Issue
Block a user