CMakeLists.txt 609 字节
Newer Older
1
add_subdirectory(detail)
2

Q
Qiao Longfei 已提交
3
cc_library(memory SRCS memory.cc DEPS place enforce)
D
dangqingqing 已提交
4
cc_library(memcpy SRCS memcpy.cc DEPS place)
5 6 7

cc_library(paddle_memory
    DEPS
Y
Yi Wang 已提交
8 9 10
    memory
    memcpy
    meta_data
11 12 13
    meta_cache
    memory_block
    buddy_allocator
14
    system_allocator)
L
liaogang 已提交
15 16

cc_test(memory_test SRCS memory_test.cc DEPS place paddle_memory)
L
Luo Tao 已提交
17 18 19 20 21 22 23

if(NOT WITH_C_API AND WITH_FLUID)
  file(GLOB MEMORY_HEADERS *.h)
  file(GLOB MEMORY_DETAIL_HEADERS detail/*.h)
  install(FILES ${MEMORY_HEADERS} DESTINATION include/paddle/memory)
  install(FILES ${MEMORY_DETAIL_HEADERS} DESTINATION include/paddle/memory/detail)
endif()