The following CMake flags (-D) is understood by RTI Connext DDS Micro and may be useful when building outside of the source bundle installed by RTI. An example would be incorporating the RTI Connext DDS Micro source in a project tree and invoke cmake directly on the CMakeLists.txt provided by RTI Connext DDS Micro.
- -DRTIME_TARGET_NAME=<name> - The name of the target (equivalant of –name to rtime-make). The default value is the name of the source directory.
- -DRTIME_CMAKE_ROOT=<path> - Where to place the CMake build files. The default value is <source>/build/cmake.
- -DRTIME_BUILD_ROOT=<path> - Where to place the intermediate build files. The default value is <source>/build.
- -DRTIME_SYSTEM_FILE=<file> or an empty string - This file can be used to set the PLATFORM_LIBS variable used by RTI Connext DDS Micro to link with. If an empty string is specified no system file is loaded. This option may be useful when cmake can detect all that is needed. The default value is not defined which means try to detect the system to build for.
- -DRTI_NO_SHARED_LIB=true - Do not build shared libraries. Default is undefined which means shared libraries is built. NOTE: This flags must be undefined to build shared libraries. Setting the value to false is not supported.
- -DRTI_MANUAL_BUILDID=true - Do not automatically generate a build id. The default value is undefined which means generate a new build each time the libraris are built. Setting the value to false is not supported. The build id is in its own source and only forces a recompile of a few files. Note that it is necessary to generate a build id at least once (this is done automatically). Also, a build id is not supported for cmake versions < 2.8.11 because the TIMESTAMP function does not exist.