Adding gtest test to a CONFIGURATION

Am I right, that you cannot add gtest testcase to a test configuration using gtest_add_tests()?

It does not have any argument for CONFIGURATION and CONFIGURATION is not a test property I can manually add.

I think the project would need to do some kind of configuration-dependent source or code exclusion here. gtest_add_tests() (IIRC) runs the executable to discover tests of interest.