CMakeLists.txt 1.0 KB
Newer Older
1 2 3 4 5
if (LITE_ON_TINY_PUBLISH)
  set(naive_wrapper "")
  return()
endif()

Y
Yan Chunwei 已提交
6 7 8 9 10 11 12
lite_cc_library(naive_buffer SRCS naive_buffer.cc DEPS types)

add_subdirectory(proto)

lite_cc_library(nb_op_desc SRCS op_desc.cc DEPS framework_nb)
lite_cc_library(nb_var_desc SRCS var_desc.cc DEPS framework_nb)
lite_cc_library(nb_param_desc SRCS param_desc.cc DEPS framework_nb)
Y
Yan Chunwei 已提交
13
lite_cc_library(nb_combined_params_desc SRCS combined_params_desc.cc DEPS nb_param_desc framework_nb)
Y
Yan Chunwei 已提交
14 15 16 17
lite_cc_library(nb_block_desc SRCS block_desc.cc DEPS framework_nb)
lite_cc_library(nb_program_desc SRCS program_desc.cc DEPS framework_nb)

set(naive_wrapper 
Y
Yan Chunwei 已提交
18
    nb_op_desc nb_var_desc nb_param_desc nb_combined_params_desc
Y
Yan Chunwei 已提交
19 20
    nb_block_desc nb_program_desc PARENT_SCOPE)

21 22 23
if(NOT WITH_COVERAGE)
    lite_cc_test(test_naive_buffer SRCS naive_buffer_test.cc DEPS naive_buffer)
endif()
Y
Yan Chunwei 已提交
24
lite_cc_test(test_naive_buffer_wrapper SRCS naive_buffer_wrapper_test.cc 
Y
Yan Chunwei 已提交
25 26
             DEPS nb_op_desc nb_var_desc nb_param_desc nb_combined_params_desc 
             nb_block_desc nb_program_desc)