Lines Matching +full:cmake +full:- +full:ext

1 # This is an example script for use with CMake projects for locating and configuring
7 # PROTOBUF_SRC_ROOT_FOLDER - When compiling with MSVC, if this cache variable is set
8 # the protobuf-default VS project build locations
12 # NANOPB_IMPORT_DIRS - List of additional directories to be searched for
15 # NANOPB_OPTIONS - List of options passed to nanopb.
17 # NANOPB_DEPENDS - List of files to be used as dependencies
22 # NANOPB_GENERATE_CPP_APPEND_PATH - By default -I will be passed to protoc
28 # PROTOC_OPTIONS - Pass options to protoc executable
32 # NANOPB_FOUND - Found the nanopb library (source&header files, generator tool, protoc compiler t…
33 # NANOPB_INCLUDE_DIRS - Include directories for Google Protocol Buffers
36 # PROTOBUF_PROTOC_EXECUTABLE - The protoc compiler
37 # NANOPB_GENERATOR_SOURCE_DIR - The nanopb generator source
42 # NANOPB_GENERATE_CPP(SRCS HDRS [RELPATH <root-path-of-proto-files>]
43 # <proto-files>...)
83 # Copyright 2009-2011 Philip Lowman <philip@yhbt.com>
117 # 2013.01.31 - Pavlo Ilin - used Modules/FindProtobuf.cmake from cmake 2.8.10 to
118 # write FindNanopb.cmake
131 list(APPEND _nanopb_include_path "-I${NANOPB_GENERATE_CPP_RELPATH}")
140 list(APPEND _nanopb_include_path "-I${ABS_PATH}")
143 set(_nanopb_include_path "-I${CMAKE_CURRENT_SOURCE_DIR}")
149 list(APPEND _nanopb_include_path "-I${ABS_PATH}")
159 set(NANOPB_GENERATOR_PLUGIN ${GENERATOR_PATH}/protoc-gen-nanopb.bat)
161 set(NANOPB_GENERATOR_PLUGIN ${GENERATOR_PATH}/protoc-gen-nanopb)
177 COMMAND ${CMAKE_COMMAND} -E copy_directory
191 ARGS -I${GENERATOR_PATH}/proto
192 --python_out=${GENERATOR_CORE_DIR} ${ABS_FIL}
236 get_filename_component(ext ${depends_file} EXT)
237 if(ext STREQUAL ".options")
249 set(NANOPB_PLUGIN_OPTIONS "${NANOPB_PLUGIN_OPTIONS} -I${options_path}")
260 …# - An older hacky one using ':' as option separator in protoc args preventing the ':' to be used …
261 # - Or a newer one, using --nanopb_opt which requires a version of protoc >= 3.6
262 # Since nanopb 0.4.6, --nanopb_opt is the default.
264 set(NANOPB_OPT_STRING "--nanopb_out=${NANOPB_PLUGIN_OPTIONS}:${NANOPB_OUT}")
266 set(NANOPB_OPT_STRING "--nanopb_opt=${NANOPB_PLUGIN_OPTIONS}" "--nanopb_out=${NANOPB_OUT}")
273 ARGS ${_nanopb_include_path} -I${GENERATOR_PATH}
274 -I${GENERATOR_CORE_DIR} -I${CMAKE_CURRENT_BINARY_DIR}
275 --plugin=protoc-gen-nanopb=${NANOPB_GENERATOR_PLUGIN}
307 # By default have NANOPB_GENERATE_CPP macro pass -I to protoc
352 ${NANOPB_SRC_ROOT_FOLDER}/generator-bin