Files
SDK_SG200x_V2/cviruntime/python/CMakeLists.txt
carbon e25f20f7a3 add cviruntime
commit 3f4938648950a7f3bf9a19c320ca9fae7c52de20
Author: sophgo-forum-service <forum_service@sophgo.com>
Date:   Mon May 13 13:44:23 2024 +0800

    [feat] cviruntime opensource for cv18xx soc.

    - a4b6a3, add cumsum and gatherelements_pt.
2024-05-31 11:51:34 +08:00

16 lines
459 B
CMake

cmake_minimum_required(VERSION 3.1.0)
project(pyruntime)
if(CMAKE_CROSSCOMPILING)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_SYSROOT}/include)
link_directories(${CNPY_PATH})
endif()
add_subdirectory(include/pybind11)
pybind11_add_module(pyruntime pyruntime.cpp)
set(CVI_LIBS ${CVI_LIBS} cviruntime cvikernel)
target_link_libraries(pyruntime PRIVATE ${CVI_LIBS})
install(TARGETS pyruntime DESTINATION python)