diff --git a/lite/CMakeLists.txt b/lite/CMakeLists.txt index 937781293a77732fa6c115327b1a4c824c1f0930..bc05fe7d42fe4402c607af752c4204c3511414aa 100644 --- a/lite/CMakeLists.txt +++ b/lite/CMakeLists.txt @@ -12,6 +12,7 @@ message(STATUS "LITE_WITH_PROFILE:\t${LITE_WITH_PROFILE}") set(LITE_MODEL_DIR "${THIRD_PARTY_PATH}/install") set(LITE_ON_MOBILE ${LITE_WITH_LIGHT_WEIGHT_FRAMEWORK}) +add_subdirectory(backends) add_subdirectory(utils) add_subdirectory(operators) add_subdirectory(kernels) @@ -19,7 +20,6 @@ add_subdirectory(core) add_subdirectory(model_parser) add_subdirectory(api) add_subdirectory(fluid) -add_subdirectory(backends) if (NOT LITE_ON_TINY_PUBLISH) add_subdirectory(tests) diff --git a/lite/backends/CMakeLists.txt b/lite/backends/CMakeLists.txt index 80dc574de894280575837584dadd8024660c6dc6..70b4f0bbf794ed7ca537177f48fee34a5955aba5 100644 --- a/lite/backends/CMakeLists.txt +++ b/lite/backends/CMakeLists.txt @@ -1,7 +1,7 @@ +add_subdirectory(opencl) add_subdirectory(arm) add_subdirectory(x86) add_subdirectory(cuda) add_subdirectory(fpga) add_subdirectory(host) -add_subdirectory(opencl) add_subdirectory(npu) diff --git a/lite/backends/arm/math/CMakeLists.txt b/lite/backends/arm/math/CMakeLists.txt index f17928cc2935089fd4d9925d9791f0190f1e5c85..4f59a0541c8bf1d39ec67ea04e9b021ebe524af4 100644 --- a/lite/backends/arm/math/CMakeLists.txt +++ b/lite/backends/arm/math/CMakeLists.txt @@ -104,8 +104,8 @@ if (NOT HAS_ARM_MATH_LIB_DIR) slice.cc reduce_mean.cc stack.cc - affine_channel.cc - anchor_generator.cc - DEPS ${lite_kernel_deps}) + affine_channel.cc + anchor_generator.cc + DEPS ${lite_kernel_deps} context tensor) endif() diff --git a/lite/core/arena/CMakeLists.txt b/lite/core/arena/CMakeLists.txt index 854d2f4172544a4170d19cd8a77fd2ea8fc4753e..127e2ea11c159217e6d943d852af5849d85a74b3 100644 --- a/lite/core/arena/CMakeLists.txt +++ b/lite/core/arena/CMakeLists.txt @@ -3,7 +3,7 @@ if(NOT WITH_TESTING) return() endif() -lite_cc_library(arena_framework SRCS framework.cc DEPS program) +lite_cc_library(arena_framework SRCS framework.cc DEPS program gtest) if(NOT LITE_WITH_OPENCL AND (LITE_WITH_X86 OR LITE_WITH_ARM)) lite_cc_test(test_arena_framework SRCS framework_test.cc DEPS arena_framework ${x86_kernels} ${fpga_kernels} ${arm_kernels} ${lite_ops} ${host_kernels})