BASIS icon indicating copy to clipboard operation
BASIS copied to clipboard

TEST_DEPENDS use scenario is missing

Open jvegh opened this issue 9 years ago • 2 comments

From the documentation it is not quite clear, what is TEST_DEPENDS for, and how it can be used. Probably it is for testing, and follows the same logic as DEPENDS, but I cannot conclude from the docs how to use it.

jvegh avatar Jun 03 '16 06:06 jvegh

Yes, these should be documented in the manual. For now, please refer to the API documentation. In this case the basis_project function of which TEST_DEPENDS is an option of.

You find the reference here: http://cmake-basis.github.io/apidoc/latest/group__CMakeAPI.html#gad82d479d14499d09c5aeda3af646b9f6

EDIT: This page is embedded in the online documentation at: http://cmake-basis.github.io/apidoc/modules.html following the link to "Public CMake Interface". Unfortunately, the use of iframe hides the actual link above...

schuhschuh avatar Jun 03 '16 08:06 schuhschuh

In case the API documentation is not clear enough, it only says:

List of dependencies, i.e., either names of other BASIS (sub)projects or names of external packages which are only required by the tests.

TEST_DEPENDS and OPTIONAL_TEST_DEPENDS are only looked for when BUILD_TESTING flag is set to ON, i.e., when the source files in the TESTING_DIR (default: test/) are included in the build.

TOOLS_DEPENDS and OPTIONAL_TOOLS_DEPENDS are only looked for when BUILD_APPLICATIONS is set to ON, i.e., when the source files in the TOOLS_DIR (default: tools/) are included in the build.

schuhschuh avatar Jun 03 '16 08:06 schuhschuh