工程优化

serial
Matthew 1 year ago
parent 59791d6ded
commit ab4425a319

@ -48,7 +48,9 @@ project("microphoto")
# message(FATAL_ERROR "OpenCV ${OpenCV_DIR}")
find_package(OpenCV REQUIRED core imgproc highgui)
# find_package(OpenCV REQUIRED core imgproc)
if(OpenCV_FOUND)
include_directories(${OpenCV_INCLUDE_DIRS})
message(WARNING "OpenCV library status:")
@ -294,16 +296,16 @@ add_library( # Sets the name of the library.
MicroPhoto.cpp
TerminalDevice.cpp
PhoneDevice.cpp
// PhoneDevice2.cpp
// Camera.cpp
// Camera2Reader.cpp
// TextPaint.cpp
# PhoneDevice2.cpp
Camera.cpp
Camera2Reader.cpp
# TextPaint.cpp
CvText.cpp
SerialPort.cpp
ncnn/yolov5ncnn.cpp
// camera2/OpenCVFont.cpp
# camera2/OpenCVFont.cpp
${CAMERA2_SOURCES}
@ -363,6 +365,7 @@ find_library( # Sets the name of the path variable.
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.
target_link_libraries( # Specifies the target library.
microphoto
@ -381,3 +384,4 @@ target_link_libraries( # Specifies the target library.
)
# set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS_RELEASE "-strip-all")

@ -26,7 +26,7 @@
// #include <opencv2/objdetect.hpp>
// #include <opencv2/features2d.hpp>
#include <opencv2/core/types.hpp>
// #include <opencv2/core/types.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>

@ -19,6 +19,7 @@ android.useAndroidX=true
android.enableJetifier=true
opencvsdk=D:/Workspace/deps/opencv-mobile-4.9.0-android
# opencvsdk=D:/Workspace/deps/opencv-mobile-3.4.20-android
coreroot=D:/Workspace/Github/xymp/xymp/Core
# opencvsdk=D:/Workspace/deps/opencv-v5
asioroot=D:/Workspace/deps/asio-1.28.0

Loading…
Cancel
Save