mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
[Turorials] Add tutorials for intel gpu (#860)
* Add tutorials for intel gpu * fix gflags dependency * Update README_CN.md * Update README.md * Update README.md
This commit is contained in:
20
tutorials/intel_gpu/cpp/CMakeLists.txt
Normal file
20
tutorials/intel_gpu/cpp/CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
PROJECT(infer_demo C CXX)
|
||||
CMAKE_MINIMUM_REQUIRED (VERSION 3.10)
|
||||
|
||||
# specify the decompress directory of FastDeploy SDK
|
||||
option(FASTDEPLOY_INSTALL_DIR "Path of downloaded fastdeploy sdk.")
|
||||
include(${FASTDEPLOY_INSTALL_DIR}/utils/gflags.cmake)
|
||||
include(${FASTDEPLOY_INSTALL_DIR}/FastDeploy.cmake)
|
||||
|
||||
include_directories(${FASTDEPLOY_INCS})
|
||||
|
||||
add_executable(infer_resnet50 ${PROJECT_SOURCE_DIR}/infer_resnet50.cc)
|
||||
add_executable(infer_ppyoloe ${PROJECT_SOURCE_DIR}/infer_ppyoloe.cc)
|
||||
|
||||
if(UNIX AND (NOT APPLE) AND (NOT ANDROID))
|
||||
target_link_libraries(infer_resnet50 ${FASTDEPLOY_LIBS} gflags pthread)
|
||||
target_link_libraries(infer_ppyoloe ${FASTDEPLOY_LIBS} gflags pthread)
|
||||
else()
|
||||
target_link_libraries(infer_resnet50 ${FASTDEPLOY_LIBS} gflags)
|
||||
target_link_libraries(infer_ppyoloe ${FASTDEPLOY_LIBS} gflags)
|
||||
endif()
|
Reference in New Issue
Block a user