CaffeProto package currently places generated protobuf files into the
top-level binary directory.
With this commit, generated protobufe files are inside a directory
dedicated to caffeproto target (external/caffeproto).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
-Protobuf_Generate(CAFFE_PROTO "${CMAKE_BINARY_DIR}/generated/caffe" "${CaffeSource_DIR}/src" "caffe/proto/caffe.proto")
+Protobuf_Generate(CAFFE_PROTO "${CMAKE_CURRENT_BINARY_DIR}/generated/caffe" "${CaffeSource_DIR}/src" "caffe/proto/caffe.proto")
add_library(caffeproto SHARED ${CAFFE_PROTO_SOURCES})
target_include_directories(caffeproto PUBLIC ${CAFFE_PROTO_INCLUDE_DIRS})