forked from valhalla/valhalla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (33 loc) · 794 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
## Protobuf
set(protobuf_descriptors
api.proto
common.proto
directions.proto
info.proto
options.proto
sign.proto
trip.proto
transit.proto
transit_fetch.proto
incidents.proto
status.proto
matrix.proto
isochrone.proto
expansion.proto)
if(ENABLE_DATA_TOOLS)
# Only mjolnir needs the OSM PBF descriptors
list(APPEND protobuf_descriptors
${VALHALLA_SOURCE_DIR}/third_party/OSM-binary/src/fileformat.proto
${VALHALLA_SOURCE_DIR}/third_party/OSM-binary/src/osmformat.proto)
endif()
protobuf_generate_cpp(protobuf_srcs protobuf_hdrs ${protobuf_descriptors})
valhalla_module(NAME proto
SOURCES
${protobuf_srcs}
HEADERS
${protobuf_hdrs}
INCLUDE_DIRECTORIES
PUBLIC
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS
${valhalla_protobuf_targets})