mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* keep DefaultFormatBundle * add DefaultFormatBundle * add condition * resolve comments * remove useless * add override
22 lines
607 B
CMake
22 lines
607 B
CMake
# Copyright (c) OpenMMLab. All rights reserved.
|
|
cmake_minimum_required(VERSION 3.14)
|
|
project(mmdeploy_transform)
|
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)
|
|
|
|
set(SRCS
|
|
collect.cpp
|
|
compose.cpp
|
|
crop.cpp
|
|
image2tensor.cpp
|
|
default_format_bundle.cpp
|
|
load.cpp
|
|
normalize.cpp
|
|
pad.cpp
|
|
resize.cpp
|
|
transform.cpp)
|
|
mmdeploy_add_module(${PROJECT_NAME} LIBRARY "${SRCS}")
|
|
target_include_directories(
|
|
${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/preprocess>)
|
|
add_library(mmdeploy::transform ALIAS ${PROJECT_NAME})
|