Files
FastDeploy/examples/application/java/yolov8/cpp/CMakeLists.txt
hjyp cc4bbf2163 [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>
2023-04-10 21:23:44 +08:00

24 lines
558 B
CMake

# 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}
)