Make CMakeLists.txt install gRPC service headers. (#779)

master
Christoph Schütte 2017-12-20 14:40:33 +01:00 committed by Wally B. Feed
parent c881fe90cf
commit 18cb9c324f
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,6 @@ endforeach()
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_SRCS ${ALL_PROTO_SRCS})
set(INSTALL_GENERATED_HDRS ${ALL_PROTO_HDRS})
if(${BUILD_GRPC})
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_SRCS ${ALL_GRPC_SERVICE_SRCS})
endif()
set(INSTALL_GENERATED_HDRS ${ALL_PROTO_HDRS} ${ALL_GRPC_SERVICE_HDRS})
add_library(${PROJECT_NAME} ${ALL_LIBRARY_HDRS} ${ALL_LIBRARY_SRCS})