mmdeploy/csrc/net/CMakeLists.txt
lvhan028 e10a1b7c9e
Add more demos (#305)
* add more examples

* change to restore's output image to BGR

* use BUILD_SHARED_LIBS

* update graph module's cmake

* add condition for spdlog package

* change cmakelists

* update cmakelists

* add device_name in each demo

* remove duplicate cmake function

* use palette to draw segmentation's result

* no need to find_package(pplnn) when use MMDeploy's static libs

* remove MMDeploy_LIBS' dependency on spdlog

* #include <opencv2/imgproc/imgproc.hpp>

* change from mmdeploy_core to mmdeploy::core
2021-12-21 21:32:39 +08:00

31 lines
772 B
CMake

# Copyright (c) OpenMMLab. All rights reserved.
cmake_minimum_required(VERSION 3.14)
project(mmdeploy_net_module)
include(${CMAKE_SOURCE_DIR}/cmake/common.cmake)
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 ()
build_target(${PROJECT_NAME} net_module.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE mmdeploy::core)
add_library(mmdeploy::net_module ALIAS ${PROJECT_NAME})
export_module(${PROJECT_NAME})