Make CMakeLists.txt install gRPC service headers. (#779)
parent
c881fe90cf
commit
18cb9c324f
|
@ -104,7 +104,6 @@ endforeach()
|
||||||
set_source_files_properties(${ALL_PROTO_SRCS} ${ALL_PROTO_HDRS} PROPERTIES GENERATED TRUE)
|
set_source_files_properties(${ALL_PROTO_SRCS} ${ALL_PROTO_HDRS} PROPERTIES GENERATED TRUE)
|
||||||
list(APPEND ALL_LIBRARY_HDRS ${ALL_PROTO_HDRS})
|
list(APPEND ALL_LIBRARY_HDRS ${ALL_PROTO_HDRS})
|
||||||
list(APPEND ALL_LIBRARY_SRCS ${ALL_PROTO_SRCS})
|
list(APPEND ALL_LIBRARY_SRCS ${ALL_PROTO_SRCS})
|
||||||
set(INSTALL_GENERATED_HDRS ${ALL_PROTO_HDRS})
|
|
||||||
|
|
||||||
if(${BUILD_GRPC})
|
if(${BUILD_GRPC})
|
||||||
set(ALL_GRPC_SERVICE_SRCS)
|
set(ALL_GRPC_SERVICE_SRCS)
|
||||||
|
@ -137,6 +136,7 @@ if(${BUILD_GRPC})
|
||||||
list(APPEND ALL_LIBRARY_HDRS ${ALL_GRPC_SERVICE_HDRS})
|
list(APPEND ALL_LIBRARY_HDRS ${ALL_GRPC_SERVICE_HDRS})
|
||||||
list(APPEND ALL_LIBRARY_SRCS ${ALL_GRPC_SERVICE_SRCS})
|
list(APPEND ALL_LIBRARY_SRCS ${ALL_GRPC_SERVICE_SRCS})
|
||||||
endif()
|
endif()
|
||||||
|
set(INSTALL_GENERATED_HDRS ${ALL_PROTO_HDRS} ${ALL_GRPC_SERVICE_HDRS})
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} ${ALL_LIBRARY_HDRS} ${ALL_LIBRARY_SRCS})
|
add_library(${PROJECT_NAME} ${ALL_LIBRARY_HDRS} ${ALL_LIBRARY_SRCS})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue