mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00

* Add tutorials for intel gpu * fix gflags dependency * Update README_CN.md * Update README.md * Update README.md
21 lines
811 B
CMake
21 lines
811 B
CMake
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()
|