CMakeLists.txt 1.5 KB
Newer Older
1
cc_library(reader_op_registry SRCS reader_op_registry.cc DEPS operator op_registry reader)
Y
Refine  
Yu Yang 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
set(LOCAL_READER_LIBS)

function(reader_library TARGET_NAME)
    set(oneValueArgs "")
    set(multiValueArgs SRCS DEPS)
    set(options "")
    set(common_deps reader_op_registry)
    cmake_parse_arguments(reader_library "${options}" "${oneValueArgs}"
            "${multiValueArgs}" ${ARGN})
    op_library(${TARGET_NAME} SRCS ${reader_library_SRCS} DEPS ${common_deps} ${reader_library_DEPS})
    set(LOCAL_READER_LIBS
            ${TARGET_NAME}
            ${LOCAL_READER_LIBS}
        PARENT_SCOPE)
endfunction()

Y
yuyang18 已提交
18
cc_library(buffered_reader SRCS buffered_reader.cc DEPS reader simple_threadpool)
19
reader_library(open_files_op SRCS open_files_op.cc)
Y
Refine  
Yu Yang 已提交
20 21 22 23
reader_library(create_random_data_generator_op SRCS create_random_data_generator_op.cc)
reader_library(create_shuffle_reader_op SRCS create_shuffle_reader_op.cc)
reader_library(create_batch_reader_op SRCS create_batch_reader_op.cc)
reader_library(create_recordio_file_reader_op SRCS create_recordio_file_reader_op.cc)
Y
yuyang18 已提交
24
reader_library(create_double_buffer_reader_op SRCS create_double_buffer_reader_op.cc DEPS buffered_reader)
F
fengjiayi 已提交
25
reader_library(create_multi_pass_reader_op SRCS create_multi_pass_reader_op.cc)
26
reader_library(create_custom_reader_op SRCS create_custom_reader_op.cc)
S
sneaxiy 已提交
27
reader_library(create_py_reader_op SRCS create_py_reader_op.cc)
F
fengjiayi 已提交
28 29

cc_test(reader_blocking_queue_test SRCS reader_blocking_queue_test.cc)
Y
Refine  
Yu Yang 已提交
30 31
# Export local libraries to parent
set(READER_LIBRARY ${LOCAL_READER_LIBS} PARENT_SCOPE)