| | 1 | = CMake Macro Reference: `boost_additional_test_dependencies` = |
| | 2 | |
| | 3 | The `boost_additional_test_dependencies` macro adds additional include directories based on the dependencies of the library being tested 'libname' and all of its dependencies. |
| | 4 | |
| | 5 | {{{ |
| | 6 | boost_additional_test_dependencies(libname |
| | 7 | BOOST_DEPENDS libdepend1 libdepend2 ...) |
| | 8 | }}} |
| | 9 | |
| | 10 | `libname` is the name of the boost library being tested. (signals) |
| | 11 | |
| | 12 | There is mandatory argument to the macro: |
| | 13 | |
| | 14 | `BOOST_DEPENDS`: The list of the extra boost libraries that the test suite will |
| | 15 | depend on. You do NOT have to list those libraries already listed by the |
| | 16 | module.cmake file as these will be used. |
| | 17 | |
| | 18 | == Example == |
| | 19 | |
| | 20 | The following invocation of the `boost_additional_test_dependencies` macro is taken from the signals library. |
| | 21 | {{{ |
| | 22 | boost_additional_test_dependencies(signals BOOST_DEPENDS test optional) |
| | 23 | }}} |
| | 24 | |
| | 25 | == Where Defined == |
| | 26 | This macro is defined in the Boost Testing module in [http://svn.boost.org/svn/boost/trunk/tools/build/CMake/BoostTesting.cmake |
| | 27 | |