mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-11 10:08:02 -06:00
feat: Add document scanner package
This commit is contained in:
13
packages/paperless_document_scanner/android/CMakeLists.txt
Normal file
13
packages/paperless_document_scanner/android/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.6.0)
|
||||
include_directories(../include)
|
||||
add_library(lib_opencv SHARED IMPORTED)
|
||||
set_target_properties(lib_opencv PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libopencv_java4.so)
|
||||
set(EDGE_DETECTION_DIR "../ios/Classes")
|
||||
set(SOURCES
|
||||
${EDGE_DETECTION_DIR}/native_edge_detection.cpp
|
||||
${EDGE_DETECTION_DIR}/edge_detector.cpp
|
||||
${EDGE_DETECTION_DIR}/image_processor.cpp
|
||||
${EDGE_DETECTION_DIR}/conversion_utils.cpp
|
||||
)
|
||||
add_library(native_edge_detection SHARED ${SOURCES})
|
||||
target_link_libraries(native_edge_detection lib_opencv)
|
||||
Reference in New Issue
Block a user