Tune protobuf source generation

This commit is contained in:
Simon Fels 2016-08-16 11:20:23 +02:00
commit 70666da79b

View file

@ -15,16 +15,13 @@ include_directories(
${CMAKE_SOURCE_DIR}/external/android-emugl/host/include
)
set(PROTOBUF_SOURCES
protobuf_generate_cpp(
GENERATED_PROTOBUF_BRIDGE_SRCS GENERATED_PROTOBUF_BRIDGE_HDRS
anbox/protobuf/anbox_bridge.proto)
protobuf_generate_cpp(
GENERATED_PROTOBUF_SRCS GENERATED_PROTOBUF_HDRS
${PROTOBUF_SOURCES})
add_library(anbox-protobuf
${GENERATED_PROTOBUF_SRCS}
${GENERATED_PROTOBUF_HDRS}
${GENERATED_PROTOBUF_BRIDGE_SRCS}
${GENERATED_PROTOBUF_BRIDGE_HDRS}
anbox/protobuf/google_protobuf_guard.cpp)
target_link_libraries(anbox-protobuf
${PROTOBUF_LITE_LIBRARIES})