mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* 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
20 lines
520 B
CMake
20 lines
520 B
CMake
# Copyright (c) OpenMMLab. All rights reserved.
|
|
|
|
project(mmdeploy_transform)
|
|
|
|
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})
|