1
0
mirror of synced 2025-01-31 07:36:59 +01:00
Stuart Schechter 0347de327f I lost over a day trying to figure out why I couldn't set a working directory for tests. It turns out, you can't (at least for Visual Studio projects) if you used gtest_add_tests, but it works just fine using the more up to date gtest_discover_tests. This PR is written to facilitate two very common needs of testers: access to a working directory and the ability to include libraries (since, tests are often written to tests libraries.)
Changes:
Replace gtest_add_tests, which is outdated and causes problems (especially in Windows & visual studio) with gtest_discover_tests.
Modified macros to show how working directories are set
Add example that sets working directory and uses custom libraries.
Add include(GoogleTest), which seems to be necessary on some platforms
2019-09-26 23:17:15 +00:00
..
2019-08-09 23:00:37 -04:00
2019-07-19 11:22:54 -04:00
2019-09-23 15:38:22 -04:00
2019-08-08 17:20:21 -04:00
2019-08-23 19:31:45 +09:00
2018-04-05 23:25:03 +02:00
2018-03-31 08:12:42 +02:00
2018-03-30 08:53:16 +02:00
2018-03-30 15:15:37 +02:00
2019-08-07 05:06:55 +00:00