Skip to content

GoogleTest: Add DEF_SOURCE_LINE property to gtest_add_tests

gtest_add_tests() adds a custom property to tests which contains the path to the source file and the line number of test definitions.

An example use case is to enable VS Code CMake Tools to "Go to Source" from its Test Explorer UI. See merged implementation in vscode-cmake-tools.

Depends on !9305 (merged)

Topic-rename: GoogleTest-source-line

Edited by Brad King

Merge request reports