Markus Heß
1509e8e3b3
Revert "protobuf_generate(): add relative path to output dir"
...
This reverts commit 93f6b67eb2
.
Protoc adds already the relative path to the output directory.
Therefore, we have to remove this again from the output directory
to prevent adding it twice.
6 years ago
Markus Heß
93f6b67eb2
protobuf_generate(): add relative path to output dir
...
Without this fix, protobuf_generate() sets the variable _generated_srcs to
${protobuf_generate_PROTOC_OUT_DIR}/${_rel_dir}/${_basename}${_ext}
but generates the files in
${protobuf_generate_PROTOC_OUT_DIR}/${_basename}${_ext}
7 years ago
Steffen Wittmeier
3e84147d53
Fixed protobuf_generate output definition for files relative to the protobuf_generate command
7 years ago
Christian von Arnim
411018e3fb
cmake: Fix DEPENDS of add_custom_command in protobuf_generate
7 years ago
Christian von Arnim
b9c0c5f526
cmake: Add parameter PROTOC_OUT_DIR to protobuf_generate
7 years ago
Christian von Arnim
e8ae76fbde
cmake: Use GENERATE_EXTENSIONS parameter in protobuf_generate
7 years ago
Ben Boeckel
9d0a44c9de
cmake: privately add sources to targets
...
Public sources get added to dependencies of the target as well which can
cause duplicate symbols.
7 years ago
Markus Heß
f7e209951e
protobuf_generate: create include path only for proto files
7 years ago
Markus Heß
9829b8f511
protobuf_generate: add EXPORT_MACRO option
7 years ago
Markus Heß
444aecd35a
fix protobuf_generate function
7 years ago
Walter Gray
0336770801
add protobuf_generate function, allows use of target_sources where available
8 years ago
Konstantin Podsvirov
eefd1fdd48
CMake: Auto find ZLIB from package config if nedded
8 years ago
Konstantin Podsvirov
71556295ff
CMake project updates
...
A series of improvements:
- Improved Protobuf module compatibility (disabled by default);
- Hide advanced settings;
- Added build tree configuration;
- Added build of examples.
9 years ago
Walter Gray
457a2975f4
Remove __PROTOBUF_PACKAGE_PREFIX
9 years ago
Walter Gray
d13b3d0d96
remove useless cleanup - config.cmake files are executed in their own context.
9 years ago
Feng Xiao
eee38b0c01
Down-integrate from google3.
9 years ago
Konstantin Podsvirov
0be0789018
CMake installation now compatible with origin FindProtobuf module
9 years ago
Konstantin Podsvirov
743ec448c5
Parsing version from configure.ac for CMake project
10 years ago
Konstantin Podsvirov
82983433cf
Install protobuf from cmake project
...
Additional export as "protobuf" package
for importing from other cmake projects
10 years ago