Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST_DEPENDS use scenario is missing #604

Open
jvegh opened this issue Jun 3, 2016 · 2 comments
Open

TEST_DEPENDS use scenario is missing #604

jvegh opened this issue Jun 3, 2016 · 2 comments

Comments

@jvegh
Copy link

jvegh commented Jun 3, 2016

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.

@schuhschuh
Copy link
Contributor

schuhschuh commented Jun 3, 2016

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
Copy link
Contributor

schuhschuh commented Jun 3, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants