You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
697 B
CMake
21 lines
697 B
CMake
1 year ago
|
PROJECT(multi_thread_demo C CXX)
|
||
|
CMAKE_MINIMUM_REQUIRED (VERSION 3.10)
|
||
|
|
||
|
# 指定下载解压后的fastdeploy库路径
|
||
|
option(FASTDEPLOY_INSTALL_DIR "Path of downloaded fastdeploy sdk.")
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 20)
|
||
|
SET(CMAKE_CXX_COMPILER "/usr/bin/g++")
|
||
|
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS}" "-std=c++20" )
|
||
|
|
||
|
include(${FASTDEPLOY_INSTALL_DIR}/FastDeploy.cmake)
|
||
|
|
||
|
# 添加FastDeploy依赖头文件
|
||
|
include_directories(${FASTDEPLOY_INCS})
|
||
|
|
||
|
add_executable(multi_thread_demo ${PROJECT_SOURCE_DIR}/multi_thread.cc)
|
||
|
# 添加FastDeploy库依赖
|
||
|
target_link_libraries(multi_thread_demo ${FASTDEPLOY_LIBS} pthread)
|
||
|
|
||
|
# find_package(pybind11 REQUIRED)
|
||
|
# pybind11_add_module(multi_thread_demo multi_thread.cc)
|