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.
25 lines
673 B
CMake
25 lines
673 B
CMake
cmake_minimum_required(VERSION 2.8.0)
|
|
|
|
project(cvi_sample_model_info C CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS ON)
|
|
|
|
if(NOT DEFINED TPU_SDK_PATH)
|
|
message(FATAL_ERROR "Please set TPU_SDK_PATH to point to the TPU_SDK installation")
|
|
endif()
|
|
include_directories(${TPU_SDK_PATH}/include)
|
|
link_directories(${TPU_SDK_PATH}/lib)
|
|
|
|
set(CVI_LIBS ${CVI_LIBS} cviruntime cvikernel)
|
|
set(EXTRA_LIBS ${EXTRA_LIBS} dl)
|
|
|
|
add_executable(cvi_sample_model_info
|
|
model_info.c)
|
|
target_link_libraries(cvi_sample_model_info
|
|
${CVI_LIBS}
|
|
${EXTRA_LIBS})
|
|
install(TARGETS cvi_sample_model_info
|
|
cvi_sample_model_info DESTINATION bin)
|