Robot Raconteur Core C++ Library
|
ROBOTRACONTEUR_GENERATE_THUNK
Macro 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 RobotRaconteurGen
Utility.
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.
`