mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00

* add java examples * fix detail * fix pre-config --------- Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
24 lines
558 B
CMake
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}
|
|
)
|