CMakeLists.txt 567 字节
Newer Older
D
dzhwinter 已提交
1
set(FLUID_CORE_MODULES proto_desc paddle_memory lod_tensor executor prune init)
2 3

cc_library(paddle_fluid_api
4
    SRCS io.cc
L
Luo Tao 已提交
5
    DEPS ${FLUID_CORE_MODULES} ${GLOB_OP_LIB})
6

L
Liu Yiqun 已提交
7
# Create static library
L
Luo Tao 已提交
8 9 10
cc_library(paddle_fluid DEPS paddle_fluid_api ${FLUID_CORE_MODULES} ${GLOB_OP_LIB})

# Create shared library
L
Liu Yiqun 已提交
11 12 13 14
cc_library(paddle_fluid_shared SHARED
    SRCS io.cc
    DEPS ARCHIVE_START ${GLOB_OP_LIB} ${FLUID_CORE_MODULES} ARCHIVE_END)
set_target_properties(paddle_fluid_shared PROPERTIES OUTPUT_NAME paddle_fluid)
15

16 17
if(WITH_TESTING)
  add_subdirectory(tests/book)
18
endif()