CMakeLists.txt 757 字节
Newer Older
S
update  
superjomn 已提交
1
cc_library(runtime_lite SRCS runtime.cc)
S
update  
superjomn 已提交
2
cc_test(test_model_parser_lite SRCS model_parser_test.cc DEPS model_parser_lite)
3 4 5
if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK)
    cc_library(compatible_pb_lite SRCS compatible_pb.cc DEPS op_desc_lite var_desc_lite)
else()
6
    cc_library(compatible_pb_lite SRCS compatible_pb.cc DEPS framework_proto proto_desc)
7 8
endif(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK)

S
Superjomn 已提交
9 10 11 12 13 14 15 16
set(model_parser_deps variable_lite scope_lite tensor_lite scope_lite
                      target_wrapper_host
                      compatible_pb_lite
                      )
if (LITE_WITH_CUDA)
    set(model_parser_deps ${model_parser_deps} target_wrapper_cuda)
endif()
cc_library(model_parser_lite SRCS model_parser.cc DEPS ${model_parser_deps})
17 18

add_subdirectory(pb)