mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* 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
24 lines
697 B
CMake
24 lines
697 B
CMake
# Copyright (c) OpenMMLab. All rights reserved.
|
|
cmake_minimum_required(VERSION 3.14)
|
|
project(mmdeploy_cpu_transform_impl)
|
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/opencv.cmake)
|
|
include(${CMAKE_SOURCE_DIR}/cmake/common.cmake)
|
|
|
|
set(SRCS
|
|
collect_impl.cpp
|
|
crop_impl.cpp
|
|
image2tensor_impl.cpp
|
|
load_impl.cpp
|
|
normalize_impl.cpp
|
|
opencv_utils.cpp
|
|
opencv_utils.h
|
|
pad_impl.cpp
|
|
resize_impl.cpp)
|
|
build_target(${PROJECT_NAME} "${SRCS}")
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PUBLIC opencv_imgproc opencv_core
|
|
PRIVATE mmdeploy::core)
|
|
add_library(mmdeploy::transform_impl::cpu ALIAS ${PROJECT_NAME})
|
|
export_module(${PROJECT_NAME})
|