CMake target importing and exporting [1] is an alternative way to find and link to targets that have been generated and installed from another package in case users do not want to rely on the orocos_generate_package() and orocos_use_package() macros provided by UseOROCOS-RTT.cmake. This PR supports this workflow by adding an EXPORT argument to the macros that create Orocos targets and by exporting all targets under the export name ${PROJECT_NAME}-${OROCOS_TARGET} by default.
CMake target importing and exporting [1] is an alternative way to find and link to targets that have been generated and installed from another package in case users do not want to rely on the
orocos_generate_package()
andorocos_use_package()
macros provided by UseOROCOS-RTT.cmake. This PR supports this workflow by adding an EXPORT argument to the macros that create Orocos targets and by exporting all targets under the export name${PROJECT_NAME}-${OROCOS_TARGET}
by default.[1] https://cmake.org/Wiki/CMake/Tutorials/Exporting_and_Importing_Targets#Exporting_from_an_Installation_Tree