project_options
project_options copied to clipboard
feat: add a wrapper module for add_test
from aminya/cpp_vcpkg_project#35.
Additionally, add [WORKING_DIRECTORY <dir>] and [WILL_FAIL] to specify the corresponding test property.
Added these functions to test projects.
Changed test projects based on this feature and tested well, ready to merge.
Add an example or document the use of add_test() with multiple args please.
There's already an example in the document: https://github.com/FeignClaims/project_options/blob/9170c3b7b5e68840d01d79beed3b85948cd71d0e/src/Tests.cmake#L350-L355
Additionally, I added a use of add_executable_test() with args in tests.
add_executable_test(main no_arg)
add_executable_test(main with_arg
EXECUTE_ARGS hello world
)