CMakeLists.txt 600 字节
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

L
Luo Tao 已提交
18 19 20 21 22 23
set(lib_dir "${CMAKE_INSTALL_PREFIX}/paddle/memory")
add_custom_target(memory_lib
    COMMAND mkdir -p "${lib_dir}/detail"
    COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/*.h" "${lib_dir}"
    COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/detail/*.h" "${lib_dir}/detail"
)