mmdeploy/csrc/codebase/CMakeLists.txt
lzhangzz 567ec62296
[Fix] Fix recent build problems (#544)
* 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
2022-06-06 11:19:34 +08:00

22 lines
578 B
CMake

# Copyright (c) OpenMMLab. All rights reserved.
project(mmdeploy_codebase)
set(CODEBASES "")
if ("all" IN_LIST MMDEPLOY_CODEBASES)
list(APPEND CODEBASES "mmcls")
list(APPEND CODEBASES "mmdet")
list(APPEND CODEBASES "mmseg")
list(APPEND CODEBASES "mmocr")
list(APPEND CODEBASES "mmedit")
list(APPEND CODEBASES "mmpose")
list(APPEND CODEBASES "mmrotate")
else ()
set(CODEBASES ${MMDEPLOY_CODEBASES})
endif ()
foreach (codebase IN LISTS CODEBASES)
message(STATUS "build codebase: ${codebase}")
add_subdirectory(${codebase})
endforeach ()