Rewrite the deinplace tool in C++.
More consistency for a better build process.
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user