简单cmake备份
cmake_minimum_required(VERSION 3.5) project(antispoofing2D) set(CMAKE_CXX_STANDARD 11) INCLUDE_DIRECTORIES( ./ /data/caffe_beijing/caffe/include /data/caffe_beijing/caffe/include/caffe /data/caffe_beijing/caffe/src /data/caffe_beijing/caffe/build/src /usr/local/include /usr/local/cuda/include /usr/include ) #find_package(OpenCV REQUIRED) include_directories(./ ${OpenCV_INCLUDE_DIRS} /usr/local/include/opencv /usr/local/include/opencv2 ) link_libraries("/data/caffe_beijing/caffe/build/lib/libcaffe.so" "/usr/lib/x86_64-linux-gnu/libglog.so" "/usr/lib/x86_64-linux-gnu/libboost_filesystem.so" "/usr/lib/x86_64-linux-gnu/libboost_system.so" "") add_executable(antispoofing2D main.cpp antispoofing_2d.cpp caffe_mtcnn.cpp) target_link_libraries(antispoofing2D /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_video.so)
作者:cumtchw
出处:http://www.cnblogs.com/cumtchw/
我的博客就是我的学习笔记,学习过程中看到好的博客也会转载过来,若有侵权,与我联系,我会及时删除。