2021-12-07 10:57:55 +08:00
|
|
|
# Copyright (c) OpenMMLab. All rights reserved.
|
|
|
|
|
2022-06-06 11:19:34 +08:00
|
|
|
project(mmdeploy_net_module)
|
2021-12-07 10:57:55 +08:00
|
|
|
|
|
|
|
if ("trt" IN_LIST MMDEPLOY_TARGET_BACKENDS)
|
|
|
|
add_subdirectory(trt)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
if ("pplnn" IN_LIST MMDEPLOY_TARGET_BACKENDS)
|
|
|
|
add_subdirectory(ppl)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
if ("ort" IN_LIST MMDEPLOY_TARGET_BACKENDS)
|
|
|
|
add_subdirectory(ort)
|
|
|
|
endif ()
|
2021-12-17 13:45:32 +08:00
|
|
|
|
2021-12-07 10:57:55 +08:00
|
|
|
if ("ncnn" IN_LIST MMDEPLOY_TARGET_BACKENDS)
|
|
|
|
add_subdirectory(ncnn)
|
|
|
|
endif ()
|
|
|
|
|
2021-12-17 13:45:32 +08:00
|
|
|
if ("openvino" IN_LIST MMDEPLOY_TARGET_BACKENDS)
|
|
|
|
add_subdirectory(openvino)
|
|
|
|
endif ()
|
|
|
|
|
2022-02-24 20:08:44 +08:00
|
|
|
mmdeploy_add_module(${PROJECT_NAME} net_module.cpp)
|
2021-12-21 21:32:39 +08:00
|
|
|
add_library(mmdeploy::net_module ALIAS ${PROJECT_NAME})
|