mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00

* add paddle_trt in benchmark * update benchmark in device * update benchmark * update result doc * fixed for CI
19 lines
637 B
CMake
Executable File
19 lines
637 B
CMake
Executable File
PROJECT(infer_demo C CXX)
|
|
CMAKE_MINIMUM_REQUIRED (VERSION 3.10)
|
|
|
|
# 指定下载解压后的fastdeploy库路径
|
|
option(FASTDEPLOY_INSTALL_DIR "Path of downloaded fastdeploy sdk.")
|
|
include(${FASTDEPLOY_INSTALL_DIR}/utils/gflags.cmake)
|
|
include(${FASTDEPLOY_INSTALL_DIR}/FastDeploy.cmake)
|
|
|
|
# 添加FastDeploy依赖头文件
|
|
include_directories(${FASTDEPLOY_INCS})
|
|
|
|
add_executable(infer_demo ${PROJECT_SOURCE_DIR}/infer.cc)
|
|
# 添加FastDeploy库依赖
|
|
if(UNIX AND (NOT APPLE) AND (NOT ANDROID))
|
|
target_link_libraries(infer_demo ${FASTDEPLOY_LIBS} gflags pthread)
|
|
else()
|
|
target_link_libraries(infer_demo ${FASTDEPLOY_LIBS} gflags)
|
|
endif()
|