自建C++工程代码调用OpenCV时使用CMakeLists.txt编译

cmake_minimum_required(VERSION 3.5)
project(read_data)
set(CMAKE_CXX_STANDARD 11)

include_directories(
						"/home/nx/opencv-4.2.0/include"
						"/home/nx/opencv-4.2.0/build"
                        "/home/nx/opencv-4.2.0/modules/calib3d/include"
                        "/home/nx/opencv-4.2.0/modules/core/include"
                        "/home/nx/opencv-4.2.0/modules/dnn/include"
                        "/home/nx/opencv-4.2.0/modules/flann/include"
                        "/home/nx/opencv-4.2.0/modules/highgui/include"
						"/home/nx/opencv-4.2.0/modules/highgui/include/opencv2/highgui"
                        "/home/nx/opencv-4.2.0/modules/imgproc/include"
                        "/home/nx/opencv-4.2.0/modules/js/include"
                        "/home/nx/opencv-4.2.0/modules/objdetect/include"
                        "/home/nx/opencv-4.2.0/modules/python/include"
                        "/home/nx/opencv-4.2.0/modules/ts/include"
                        "/home/nx/opencv-4.2.0/modules/videoio/include"
                        "/home/nx/opencv-4.2.0/modules/cudabgsegm/include"
                        "/home/nx/opencv-4.2.0/modules/features2d/include"
                        "/home/nx/opencv-4.2.0/modules/gapi/include"
                        "/home/nx/opencv-4.2.0/modules/imgcodecs/include"
                        "/home/nx/opencv-4.2.0/modules/java/include"
                        "/home/nx/opencv-4.2.0/modules/ml/include"
                        "/home/nx/opencv-4.2.0/modules/photo/include"
                        "/home/nx/opencv-4.2.0/modules/stitching/include"
                        "/home/nx/opencv-4.2.0/modules/video/include"
                        "/home/nx/opencv-4.2.0/modules/world/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/aruco/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/bgsegm/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/bioinspired/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/ccalib/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cnn_3dobj/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudaarithm/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudabgsegm/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudacodec/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudafeatures2d/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudafilters/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudaimgproc/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudalegacy/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudaobjdetect/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudaoptflow/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudastereo/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudawarping/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cudev/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/cvv/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/datasets/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/dnn_objdetect/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/dnns_easily_fooled/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/dnn_superres/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/dpm/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/face/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/freetype/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/fuzzy/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/hdf/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/hfs/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/img_hash/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/line_descriptor/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/matlab/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/optflow/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/ovis/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/phase_unwrapping/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/plot/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/quality/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/reg/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/rgbd/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/saliency/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/sfm/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/shape/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/stereo/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/structured_light/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/superres/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/surface_matching/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/text/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/tracking/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/videostab/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/viz/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/xfeatures2d/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/ximgproc/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/xobjdetect/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules/xphoto/include"
                        "/home/nx/opencv-4.2.0/opencv_contrib-4.2.0/modules//include"
)


LINK_DIRECTORIES(
						"/home/opencv-4.2.0/build/lib"
)

LINK_LIBRARIES(
					"/home/nx/opencv-4.2.0/build/lib/libopencv_cudaimgproc.so.4.2.0"
					"/home/nx/opencv-4.2.0/build/lib/libopencv_highgui.so.4.2.0"
					"/home/nx/opencv-4.2.0/build/lib/libopencv_imgproc.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_core.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_aruco.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_aruco.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_aruco.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_bgsegm.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_bgsegm.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_bgsegm.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_bioinspired.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_bioinspired.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_bioinspired.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_calib3d.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_calib3d.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_calib3d.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ccalib.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ccalib.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ccalib.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_core.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_core.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_core.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaarithm.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaarithm.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaarithm.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudabgsegm.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudabgsegm.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudabgsegm.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudacodec.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudacodec.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudacodec.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudafeatures2d.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudafeatures2d.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudafeatures2d.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudafilters.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudafilters.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudafilters.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaimgproc.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaimgproc.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaimgproc.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudalegacy.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudalegacy.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudalegacy.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaobjdetect.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaobjdetect.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaobjdetect.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaoptflow.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaoptflow.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudaoptflow.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudastereo.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudastereo.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudastereo.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudawarping.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudawarping.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudawarping.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudev.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudev.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cudev.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cvv.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cvv.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_cvv.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_datasets.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_datasets.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_datasets.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn_objdetect.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn_objdetect.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn_objdetect.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn_superres.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn_superres.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dnn_superres.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dpm.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dpm.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_dpm.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_face.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_face.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_face.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_features2d.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_features2d.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_features2d.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_flann.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_flann.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_flann.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_freetype.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_freetype.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_freetype.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_fuzzy.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_fuzzy.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_fuzzy.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_gapi.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_gapi.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_gapi.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_hdf.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_hdf.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_hdf.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_hfs.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_hfs.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_hfs.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_highgui.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_highgui.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_highgui.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_imgcodecs.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_imgcodecs.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_imgcodecs.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_img_hash.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_img_hash.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_img_hash.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_imgproc.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_imgproc.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_imgproc.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_line_descriptor.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_line_descriptor.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_line_descriptor.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ml.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ml.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ml.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_objdetect.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_objdetect.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_objdetect.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_optflow.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_optflow.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_optflow.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_phase_unwrapping.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_phase_unwrapping.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_phase_unwrapping.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_photo.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_photo.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_photo.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_plot.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_plot.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_plot.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_quality.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_quality.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_quality.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_reg.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_reg.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_reg.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_rgbd.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_rgbd.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_rgbd.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_saliency.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_saliency.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_saliency.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_shape.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_shape.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_shape.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_stereo.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_stereo.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_stereo.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_stitching.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_stitching.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_stitching.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_structured_light.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_structured_light.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_structured_light.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_superres.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_superres.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_superres.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_surface_matching.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_surface_matching.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_surface_matching.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_text.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_text.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_text.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_tracking.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_tracking.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_tracking.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ts.a"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_videoio.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_videoio.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_videoio.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_video.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_video.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_video.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_videostab.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_videostab.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_videostab.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xfeatures2d.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xfeatures2d.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xfeatures2d.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ximgproc.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ximgproc.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_ximgproc.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xobjdetect.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xobjdetect.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xobjdetect.so.4.2.0"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xphoto.so"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xphoto.so.4.2"
                   "/home/nx/opencv-4.2.0/build/lib/libopencv_xphoto.so.4.2.0"
)

add_library(read_data.so SHARED templatematching.cpp)
add_executable(matching matching.cpp)

 

使用notepad++正则表达式可以批量修改,也可以自己重写为变量

保存为CMakeLists.txt

执行

cmake . && make

 

上一篇:struts2中的constant配置详解


下一篇:redis学习笔记-string