Simpler build for deinplace tool.
This commit is contained in:
@@ -40,12 +40,6 @@ install(TARGETS fmri DESTINATION bin)
|
|||||||
|
|
||||||
# Build instructions for the deinplace tool
|
# Build instructions for the deinplace tool
|
||||||
find_package(Protobuf REQUIRED)
|
find_package(Protobuf REQUIRED)
|
||||||
protobuf_generate_cpp(CAFFE_PROTO_CPP CAFFE_PROTO_HEADERS "src/proto/caffe.proto")
|
add_executable(deinplace "src/tools/deinplace.cpp")
|
||||||
add_executable(deinplace
|
|
||||||
"src/tools/deinplace.cpp"
|
|
||||||
${CAFFE_PROTO_CPP}
|
|
||||||
${CAFFE_PROTO_HEADERS}
|
|
||||||
)
|
|
||||||
target_compile_options(deinplace PRIVATE "-Wall" "-Wextra" "-pedantic")
|
target_compile_options(deinplace PRIVATE "-Wall" "-Wextra" "-pedantic")
|
||||||
target_link_libraries(deinplace protobuf::libprotobuf)
|
target_link_libraries(deinplace Caffe::Caffe protobuf::libprotobuf)
|
||||||
target_include_directories(deinplace PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <google/protobuf/text_format.h>
|
#include <google/protobuf/text_format.h>
|
||||||
#include <google/protobuf/io/zero_copy_stream_impl.h>
|
#include <google/protobuf/io/zero_copy_stream_impl.h>
|
||||||
#include "caffe.pb.h"
|
#include <caffe/proto/caffe.pb.h>
|
||||||
|
|
||||||
static struct
|
static struct
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user