blob: 44daf92062f1c2c60f7259efbff09c44cbb4b953 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Protobuf
find_package(Protobuf)
add_library(mixxx-proto OBJECT)
protobuf_generate(
LANGUAGE cpp
TARGET mixxx-proto
PROTOS
beats.proto
headers.proto
keys.proto
skin.proto
waveform.proto
)
if(TARGET protobuf::libprotobuf-lite)
target_link_libraries(mixxx-proto PRIVATE protobuf::libprotobuf-lite)
elseif(TARGET protobuf::libprotobuf)
target_link_libraries(mixxx-proto PRIVATE protobuf::libprotobuf)
else()
message(FATAL_ERROR "Protobuf or Protobuf-lite libraries are required to compile Mixxx.")
endif()
|