Skip to content

Commit

Permalink
cmake(test): update documentation for ngen_add_test
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- authored and PhilMiller committed Jun 26, 2024
1 parent db9bc20 commit 5d479f5
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 5d479f5

Please sign in to comment.