CMakeLists.txt 818 字节
Newer Older
Y
Yan Chunwei 已提交
1 2 3 4 5
# if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK)
#     set(utils_DEPS)
# else()
# endif()

6
if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK OR LITE_ON_MODEL_OPTIMIZE_TOOL)
Y
Yan Chunwei 已提交
7 8 9 10
  lite_cc_library(logging SRCS logging.cc)
  set(utils_DEPS logging)
  lite_cc_test(test_logging SRCS logging_test.cc DEPS ${utils_DEPS})
else()
11 12
   set(utils_DEPS glog)
endif()
Y
Yan Chunwei 已提交
13 14 15 16

lite_cc_test(test_varient SRCS varient_test.cc DEPS utils)
lite_cc_library(any SRCS any.cc)

17 18
if(LITE_ON_TINY_PUBLISH OR LITE_ON_MODEL_OPTIMIZE_TOOL)
  lite_cc_library(stream SRCS replace_stl/stream.cc)
Y
Yan Chunwei 已提交
19 20 21
endif()
#lite_cc_library(utils SRCS cp_logging.cc string.cc DEPS ${utils_DEPS} any)

22
if(LITE_ON_TINY_PUBLISH OR LITE_ON_MODEL_OPTIMIZE_TOOL)
Y
Yan Chunwei 已提交
23 24 25 26
  lite_cc_library(utils SRCS string.cc DEPS ${utils_DEPS} any stream)
else()
  lite_cc_library(utils SRCS string.cc DEPS ${utils_DEPS} any)
endif()