mmdeploy/backend_ops/ncnn/ops/CMakeLists.txt
lvhan028 6fdf6b8616
apply cmake-format and refactor cmake scripts of building onnx and te… (#99)
* apply cmake-format and refactor cmake scripts of building onnx and tensorrt ops

* add static target

* suppress 'CMAKE_CUDA_ARCHITECTURES' warning when cmake with version 18 or later is used

* fix typo
2021-10-13 16:42:11 +08:00

6 lines
165 B
CMake
Executable File

# add plugin source
file(GLOB_RECURSE BACKEND_OPS_SRCS *.cpp)
add_library(${SHARED_TARGET} SHARED ${BACKEND_OPS_SRCS})
target_link_libraries(${SHARED_TARGET} ncnn)