Add Protobuf

This commit is contained in:
Florian Märkl 2018-11-23 21:06:16 +01:00
commit 1f6209e638
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
8 changed files with 454 additions and 2 deletions

7
third-party/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,7 @@
find_package(PythonInterp 3 REQUIRED) # Make sure nanopb doesn't find Python 2.7 because Python 2 should just die.
add_subdirectory(nanopb)
set(NANOPB_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/nanopb")
set(NANOPB_SOURCE_DIR "${NANOPB_SOURCE_DIR}" PARENT_SCOPE)
set(NANOPB_GENERATOR_PY "${NANOPB_SOURCE_DIR}/generator/nanopb_generator.py" PARENT_SCOPE)