mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-10 02:50:19 +08:00
[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:
23
examples/application/java/ppyoloe/cpp/CMakeLists.txt
Normal file
23
examples/application/java/ppyoloe/cpp/CMakeLists.txt
Normal 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}
|
||||
)
|
Reference in New Issue
Block a user