Properly detect glog and Caffe using CMake.
This commit is contained in:
14
cmake/modules/FindCaffe.cmake
Normal file
14
cmake/modules/FindCaffe.cmake
Normal file
@@ -0,0 +1,14 @@
|
||||
# Caffe package for CNN Triplet training
|
||||
unset(Caffe_FOUND)
|
||||
|
||||
find_path(Caffe_INCLUDE_DIR NAMES caffe/caffe.hpp caffe/common.hpp caffe/net.hpp caffe/proto/caffe.pb.h caffe/util/io.hpp
|
||||
HINTS
|
||||
/usr/local/include)
|
||||
|
||||
find_library(Caffe_LIBS NAMES caffe
|
||||
HINTS
|
||||
/usr/local/lib)
|
||||
|
||||
if(Caffe_LIBS AND Caffe_INCLUDE_DIR)
|
||||
set(Caffe_FOUND 1)
|
||||
endif()
|
||||
Reference in New Issue
Block a user