CMakeLists.txt 1.0 KB
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 OR (NOT LITE_WITH_LOG))
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()
27 28

add_subdirectory(cv)
29 30 31 32 33 34 35 36

# fp16
if (WITH_TESTING)
    if (LITE_WITH_CUDA)
      nv_test(float16_gpu_test SRCS float16_test.cu)
    endif ()
    lite_cc_test(float16_test SRCS float16_test.cc)
endif()