Rewrite the deinplace tool in C++.

More consistency for a better build process.
This commit is contained in:
2018-03-23 16:49:37 +01:00
parent effa90c178
commit f8be25adb9
6 changed files with 202 additions and 103 deletions

View File

@@ -37,3 +37,15 @@ target_include_directories(fmri PUBLIC
# Allow the package to be installed
install(TARGETS fmri DESTINATION bin)
# Build instructions for the deinplace tool
find_package(Protobuf REQUIRED)
protobuf_generate_cpp(CAFFE_PROTO_CPP CAFFE_PROTO_HEADERS "src/proto/caffe.proto")
add_executable(deinplace
"src/tools/deinplace.cpp"
${CAFFE_PROTO_CPP}
${CAFFE_PROTO_HEADERS}
)
target_compile_options(deinplace PRIVATE "-Wall" "-Wextra" "-pedantic")
target_link_libraries(deinplace protobuf::libprotobuf)
target_include_directories(deinplace PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")