mmdeploy/csrc/net/CMakeLists.txt
lzhangzz 567ec62296
[Fix] Fix recent build problems (#544)
* simplify deps management

* skip visibility flags for MSVC

* simplify cuda deps

* naming

* workaround for cmake<3.17

* add spdlog dependency

* move the enablement of CUDA to top level CMakeLists.txt

* fix MSVC build

* fix lint

* fix build for backend ops only

* remove comment

* allow to use apis/python as a standalone project

* remove redundant cmake code

* control shared or static lib using `MMDEPLOY_SHARED_LIBS` instead of `BUILD_SHARED_LIBS`

* fix MSVC build

* update docs
2022-06-06 11:19:34 +08:00

27 lines
601 B
CMake

# Copyright (c) OpenMMLab. All rights reserved.
project(mmdeploy_net_module)
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 ()
if ("ncnn" IN_LIST MMDEPLOY_TARGET_BACKENDS)
add_subdirectory(ncnn)
endif ()
if ("openvino" IN_LIST MMDEPLOY_TARGET_BACKENDS)
add_subdirectory(openvino)
endif ()
mmdeploy_add_module(${PROJECT_NAME} net_module.cpp)
add_library(mmdeploy::net_module ALIAS ${PROJECT_NAME})