[PaddlePaddle Hackathon4 No.185] Add PaddleDetection Models Deployment Java Examples (#1782)

* add java examples

* fix detail

* fix pre-config

---------

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
This commit is contained in:
hjyp
2023-04-10 21:23:44 +08:00
committed by GitHub
parent fc15124800
commit cc4bbf2163
18 changed files with 700 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.22.1)
# Declares and names the project.
project("inferDemo")
option(FASTDEPLOY_INSTALL_DIR "Path of downloaded fastdeploy sdk.")
set(FastDeploy_DIR ${FASTDEPLOY_INSTALL_DIR})
find_package(FastDeploy REQUIRED)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${FastDeploy_INCLUDE_DIRS})
add_library(
inferDemo
SHARED
infer_demo.cc
)
target_link_libraries(
inferDemo
${FASTDEPLOY_LIBS}
)