mmdeploy/demo/csrc/CMakeLists.txt
AllentDan aa70b94378
[Fix] fix missing deploy_core (#80)
* fix missing deploy_core

* mv flag to demo

* target link
2022-01-25 14:28:15 +08:00

19 lines
516 B
CMake

# Copyright (c) OpenMMLab. All rights reserved.
cmake_minimum_required(VERSION 3.14)
project(mmdeploy-example)
find_package(OpenCV REQUIRED)
find_package(MMDeploy REQUIRED)
function(add_example name)
add_executable(${name} ${name}.cpp)
target_link_libraries(${name} ${MMDeploy_LIBS} -Wl,--disable-new-dtags
opencv_imgcodecs opencv_imgproc opencv_core)
endfunction()
add_example(image_classification)
add_example(object_detection)
add_example(image_restorer)
add_example(image_segmentation)
add_example(ocr)