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
14 lines
507 B
CMake
14 lines
507 B
CMake
# Copyright (c) OpenMMLab. All rights reserved.
|
|
|
|
project(mmdeploy_mmocr_cpu_impl CXX)
|
|
|
|
if ("cpu" IN_LIST MMDEPLOY_TARGET_DEVICES)
|
|
add_library(${PROJECT_NAME} OBJECT dbnet.cpp panet.cpp psenet.cpp)
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE 1)
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
|
mmdeploy_opencv_utils
|
|
mmdeploy::core)
|
|
target_link_libraries(mmdeploy_mmocr PRIVATE ${PROJECT_NAME})
|
|
mmdeploy_export(${PROJECT_NAME})
|
|
endif ()
|