File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function(copy TARGET)
39
39
message (FATAL_ERROR "${TARGET} source numbers are not equal to destination numbers" )
40
40
endif ()
41
41
math (EXPR len "${copy_lib_SRCS_len} - 1" )
42
-
42
+
43
43
add_custom_target (${TARGET} DEPENDS ${copy_lib_DEPS} )
44
44
foreach (index RANGE ${len} )
45
45
list (GET copy_lib_SRCS ${index} src )
@@ -155,6 +155,15 @@ copy(inference_lib DEPS paddle_fluid_shared paddle_fluid
155
155
DSTS ${dst_dir} /${module} ${dst_dir} /${module}
156
156
)
157
157
158
+ if (WITH_CONTRIB )
159
+ set (contrib_dst_dir "${FLUID_INSTALL_DIR} /contrib/inference" )
160
+ copy (contrib_inference_lib DEPS paddle_inference_api
161
+ SRCS ${PADDLE_SOURCE_DIR} /paddle/contrib/inference/paddle_inference_api.h
162
+ ${PADDLE_BINARY_DIR} /paddle/contrib/inference/libpaddle_inference_api.*
163
+ DSTS ${contrib_dst_dir} ${contrib_dst_dir}
164
+ )
165
+ endif ()
166
+
158
167
set (module "platform" )
159
168
copy (platform_lib DEPS profiler_py_proto
160
169
SRCS ${src_dir} /${module}/*.h ${src_dir} /${module}/dynload/*.h ${src_dir} /${module}/details/*.h
You can’t perform that action at this time.
0 commit comments