|
|
|
|
@ -1,3 +1,10 @@
|
|
|
|
|
# analysis and tensorrt must be added before creating static library,
|
|
|
|
|
# otherwise, there would be undefined reference to them in static library.
|
|
|
|
|
add_subdirectory(analysis)
|
|
|
|
|
if (TENSORRT_FOUND)
|
|
|
|
|
add_subdirectory(tensorrt)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
set(FLUID_CORE_MODULES proto_desc memory lod_tensor executor )
|
|
|
|
|
|
|
|
|
|
# TODO(panyx0718): Should this be called paddle_fluid_inference_api_internal?
|
|
|
|
|
@ -7,10 +14,6 @@ cc_library(paddle_fluid_api
|
|
|
|
|
|
|
|
|
|
get_property(fluid_modules GLOBAL PROPERTY FLUID_MODULES)
|
|
|
|
|
|
|
|
|
|
if(WITH_CONTRIB)
|
|
|
|
|
set(fluid_modules "${fluid_modules}" paddle_inference_api)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
# Create static library
|
|
|
|
|
cc_library(paddle_fluid DEPS ${fluid_modules} paddle_fluid_api)
|
|
|
|
|
if(NOT APPLE)
|
|
|
|
|
@ -35,9 +38,3 @@ if(WITH_TESTING)
|
|
|
|
|
# both tests/book and analysis depends the models that generated by python/paddle/fluid/tests/book
|
|
|
|
|
add_subdirectory(tests/book)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_subdirectory(analysis)
|
|
|
|
|
|
|
|
|
|
if (TENSORRT_FOUND)
|
|
|
|
|
add_subdirectory(tensorrt)
|
|
|
|
|
endif()
|
|
|
|
|
|