mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
fix compile for python
This commit is contained in:
@@ -216,6 +216,10 @@ if(BUILD_FASTDEPLOY_PYTHON)
|
|||||||
set(CMAKE_NO_SYSTEM_FROM_IMPORTED 1)
|
set(CMAKE_NO_SYSTEM_FROM_IMPORTED 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT ENABLE_VISION)
|
||||||
|
file(GLOB_RECURSE VISION_PYBIND_SRCS ${PROJECT_SOURCE_DIR}/fastdeploy/vision/*_pybind.cc)
|
||||||
|
list(REMOVE_ITEM DEPLOY_PYBIND_SRCS ${VISION_PYBIND_SRCS})
|
||||||
|
endif()
|
||||||
add_library(fastdeploy_main MODULE ${DEPLOY_PYBIND_SRCS})
|
add_library(fastdeploy_main MODULE ${DEPLOY_PYBIND_SRCS})
|
||||||
redefine_file_macro(fastdeploy_main)
|
redefine_file_macro(fastdeploy_main)
|
||||||
set_target_properties(fastdeploy_main PROPERTIES PREFIX "")
|
set_target_properties(fastdeploy_main PROPERTIES PREFIX "")
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#include "fastdeploy/pybind/main.h"
|
#include "fastdeploy/pybind/main.h"
|
||||||
|
#include "fastdeploy/fastdeploy_model.h"
|
||||||
|
|
||||||
namespace fastdeploy {
|
namespace fastdeploy {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user