ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The exported variable <pkgname>_LIBRARIES
should contain the library downstream packages are commonly supposed to use. In your case I would say the non-test library.
Your package can optionally define any arbitrary CMake variable. So it could set a variable <pkgname>_TEST_LIBRARIES
. Since this is not a "standard" use case you need to do that in your own CMake file which you can register using the CFG_EXTRAS
argument of the catkin_package function. Downstream packages must than choose to use that CMake variable instead in order to get the test version of your libraries.