简单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)

 

posted @ 2020-04-16 16:28  cumtchw  阅读(180)  评论(0编辑  收藏  举报