Skip to content

Add a new CMake target "tests" #420

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

Merged
merged 2 commits into from
Jan 2, 2014

Conversation

taketwo
Copy link
Member

@taketwo taketwo commented Dec 19, 2013

This pull request adds a new custom target called "tests".

It has two differences compared with the standard "test" target:

  • All the test binaries are listed as its dependencies. Consequently, a single command make tests is sufficient to build all tests (and nothing else) and run them;
  • Output of the individual tests is printed to console in addition to the summary provided by ctest.

This commit adds a new custom target called "tests". In contrast with
the standard "test" target it has all the test binaries listed as its
dependencies. Consequently, a single command `make tests` is sufficient
to build all tests (and nothing else) and run them.
This commit adds "-V" switch to the invocation of `ctest` in the "tests"
target. Doing so allows us to see the output of individual tests in
addition to the summary provided by `ctest`.
rbrusu added a commit that referenced this pull request Jan 2, 2014
@rbrusu rbrusu merged commit a203f09 into PointCloudLibrary:master Jan 2, 2014
@taketwo taketwo deleted the add-tests-target branch January 2, 2014 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants