|
|
|
@ -162,6 +162,7 @@ function(cc_library TARGET_NAME)
|
|
|
|
|
endif()
|
|
|
|
|
if (cc_library_DEPS)
|
|
|
|
|
add_dependencies(${TARGET_NAME} ${cc_library_DEPS})
|
|
|
|
|
target_link_libraries(${TARGET_NAME} ${cc_library_DEPS})
|
|
|
|
|
endif()
|
|
|
|
|
else(cc_library_SRCS)
|
|
|
|
|
if (cc_library_DEPS)
|
|
|
|
@ -211,6 +212,7 @@ function(nv_library TARGET_NAME)
|
|
|
|
|
endif()
|
|
|
|
|
if (nv_library_DEPS)
|
|
|
|
|
add_dependencies(${TARGET_NAME} ${nv_library_DEPS})
|
|
|
|
|
target_link_libraries(${TARGET_NAME} ${nv_library_DEPS})
|
|
|
|
|
endif()
|
|
|
|
|
else(nv_library_SRCS)
|
|
|
|
|
if (nv_library_DEPS)
|
|
|
|
@ -323,10 +325,10 @@ endfunction(go_test)
|
|
|
|
|
|
|
|
|
|
function(proto_library TARGET_NAME)
|
|
|
|
|
set(oneValueArgs "")
|
|
|
|
|
set(multiValueArgs SRCS)
|
|
|
|
|
set(multiValueArgs SRCS DEPS)
|
|
|
|
|
cmake_parse_arguments(proto_library "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
|
|
|
|
set(proto_srcs)
|
|
|
|
|
set(proto_hdrs)
|
|
|
|
|
protobuf_generate_cpp(proto_srcs proto_hdrs ${proto_library_SRCS})
|
|
|
|
|
cc_library(${TARGET_NAME} SRCS ${proto_srcs} DEPS protobuf)
|
|
|
|
|
cc_library(${TARGET_NAME} SRCS ${proto_srcs} DEPS ${proto_library_DEPS} protobuf)
|
|
|
|
|
endfunction()
|
|
|
|
|