We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
we can use set_group() to mark the given targets as test/benchmark/... and use set_default(false) to disable to build it by default.
set_group()
set_default(false)
related issues #1026
add_rules("mode.debug", "mode.release") target("test1") set_kind("binary") set_default(false) set_group("test") add_files("src/*.cpp") target("test2") set_kind("binary") set_default(false) set_group("test") add_files("src/*.cpp") target("benchmark1") set_kind("binary") set_default(false) set_group("benchmark") add_files("src/*.cpp") target("benchmark2") set_kind("binary") set_default(false) set_group("benchmark") add_files("src/*.cpp") target("demo") set_kind("binary") add_files("src/*.cpp")
We can use this feature to build all tests.
$ xmake -g test $ xmake --group=test
We can use this feature to run all tests.
$ xmake run -g test $ xmake run --group=test
$ xmake build -g benchmark $ xmake run -g benchmark
$ xmake build -g test_* $ xmake run -g test/foo_* $ xmake build -g bench* $ xmake run -g bench*
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Set group to targets
we can use
set_group()
to mark the given targets as test/benchmark/... and useset_default(false)
to disable to build it by default.related issues #1026
Build all tests
We can use this feature to build all tests.
Run all tests
We can use this feature to run all tests.
Build and run all benchmarks
Use group patten to match some targets
The text was updated successfully, but these errors were encountered: