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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
# CMake `ROBOTRACONTEUR_GENERATE_THUNK` Macro {#robotraconteur_generate_thunk}
ROBOTRACONTEUR_GENERATE_THUNK(<SRCS> <HDRS>
<ROBDEF_FILES>
[LANG <cpp|csharp|java>]
[MASTER_HEADER]
[AUTO_IMPORT]
[OUTDIR <DIRECTORY>]
[MASTER_HEADER_FILENAME <FILENAME>]
[INCLUDE_DIRS <INCLUDE_DIR1> [<INCLUDE_DIR2> ...]]
[IMPORTS <ROBDEF_IMPORT_FILE1> [<ROBDEF_IMPORT_FILE2> ...]]
[CPP_EXTRA_INCLUDE <CPP_HEADER_FILENAME1> [<CPP_HEADER_FILENAME1> ...]]
)
Generate thunk source files when building the project. Custom commands are added to call `RobotRaconteurGen` on the specified service definitions. See \ref robotraconteurgen.
`SRCS` and `HDRS`
The `SRCS` and `HDRS` specify the variables to receive the autogenerated source files. These generated files should be added to the target as sources.
`ROBDEF_FILES`
The service definition `*.robdef` files to generate thunk source.
`LANG`
The programming language to generate source for. Valid values are `cpp`, `java`, and `csharp` Defaults to `cpp` if not specified.
`MASTER_HEADER`
If present, a "master header" file with the default name `robotraconteur_generated.h` is generated. This file can be included to automatically include all generated header files, and to define `ROBOTRACONTEUR_SERVICE_TYPES` for use with RobotRaconteurNodeSetup in C++.
`AUTO_IMPORT`
If present, `RobotRaconteurGen` will search the current directory working and the include path and automatically load service definition files that are imported byt not specified on the command line.
`OUTDIR`
Specify the output directory for generated files. Default is `CMAKE_CURRENT_BINARY_DIR`. Directory must exist.
`MASTER_HEADER_FILENAME`
Override the name of the master header file. Default is `robotraconteur_generated.h`.
`INCLUDE_DIRS`
Additional directories to search for service definition `*.robdef` files.
`IMPORTS`
Additional service definitions to import to `RobotRaconteurGen`, but not generate sources.
`CPP_EXTRA_INCLUDE`
Add additional `#include` files to the generated C++ header files.
`
|