You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- find_package(Protobuf)
-
- if(PROTOBUF_FOUND)
- protobuf_generate_cpp(CAFFE_PROTO_SRCS CAFFE_PROTO_HDRS caffe.proto)
- add_executable(caffe2ncnn caffe2ncnn.cpp ${CAFFE_PROTO_SRCS} ${CAFFE_PROTO_HDRS})
- target_include_directories(caffe2ncnn
- PRIVATE
- ${PROTOBUF_INCLUDE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR})
- target_link_libraries(caffe2ncnn PRIVATE ${PROTOBUF_LIBRARIES})
-
- # add all caffe2ncnn tool to a virtual project group
- set_property(TARGET caffe2ncnn PROPERTY FOLDER "tools/converter")
- else()
- message(WARNING "Protobuf not found, caffe model convert tool won't be built")
- endif()
|