CMakeLists.txt 1.1 KB
Newer Older
T
Thunderbrook 已提交
1 2 3
if (WITH_PSLIB)
    return()
endif()
T
tangwei12 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
if(NOT WITH_DISTRIBUTE)
    return()
endif()

proto_library(ps_framework_proto SRCS ps.proto)

set(DISTRIBUTE_COMPILE_FLAGS "-Wno-error=unused-value -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=type-limits -Wno-error=unknown-pragmas -Wno-error=parentheses -Wno-error=unused-result")

if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
    set(DISTRIBUTE_COMPILE_FLAGS
            "${DISTRIBUTE_COMPILE_FLAGS} -faligned-new")
endif()


add_subdirectory(table)
add_subdirectory(test)
T
tangwei12 已提交
20 21 22 23 24 25 26 27 28 29 30 31 32 33

# open it until CI support brpc
return()

add_subdirectory(service)

get_property(RPC_DEPS GLOBAL PROPERTY RPC_DEPS)

set_source_files_properties(fleet.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
cc_library(fleet
        SRCS fleet.cc
        DEPS framework_proto ps_framework_proto ps_service variable_helper scope op_registry fs shell ${RPC_DEPS})

target_link_libraries(fleet z)