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