xref: /aosp_15_r20/test/dittosuite/schema/CMakeLists.txt (revision 6fa2df46f119dce7527f5beb2814eca0e6f886ac)
1*6fa2df46SAndroid Build Coastguard Workerfind_package(Protobuf REQUIRED)
2*6fa2df46SAndroid Build Coastguard Worker
3*6fa2df46SAndroid Build Coastguard Workerset(Protobuf_USE_STATIC_LIBS ON)
4*6fa2df46SAndroid Build Coastguard Worker
5*6fa2df46SAndroid Build Coastguard Workerinclude_directories(${Protobuf_INCLUDE_DIRS})
6*6fa2df46SAndroid Build Coastguard Workerprotobuf_generate_cpp(PROTO_SRC PROTO_HDR benchmark.proto result.proto)
7*6fa2df46SAndroid Build Coastguard Workeradd_library(benchmark_proto ${PROTO_HDR} ${PROTO_SRC})
8*6fa2df46SAndroid Build Coastguard Workertarget_link_libraries(benchmark_proto INTERFACE ${Protobuf_LIBRARIES})
9