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

CMake: update documentation for ngen_add_test #841

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ target_include_directories(test_all PRIVATE ${CMAKE_CURRENT_LIST_DIR}/bmi)
#[==[
ngen_add_test(<test name> OBJECTS <source>...
LIBRARIES <library>...
[REQUIRES <varname>...])
[REQUIRES <varname>...]
[DEPENDS <dependency>...])

Adds an executable test (i.e. a target) called <test name>.

Expand All @@ -83,6 +84,11 @@ Adds an executable test (i.e. a target) called <test name>.
Variable names that this test's creation is dependent on.
If a given variable is not defined or is FALSE/OFF/etc. then
the corresponding <test name> target is not created.

`DEPENDS`
Additional targets that a test executable depends on. For each
dependent target given, add_dependencies(<test name> <dependency>...)
is called.
#]==]
function(ngen_add_test TESTNAME)
set(multiValueArgs OBJECTS LIBRARIES REQUIRES DEPENDS)
Expand Down
Loading