mirror of
1
0
Fork 0
modern-cmake/chapters
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
..
basics Adding minor updates to structure based on recent new example 2019-08-07 17:13:17 -04:00
features Adding debugger example 2019-08-09 23:00:37 -04:00
install Adding note on exporting 2019-07-19 11:22:54 -04:00
intro Installing updates 2019-09-23 15:38:22 -04:00
packages Promoting the new way 2019-08-08 17:20:21 -04:00
projects Fix a typo in fetch.md 2019-08-23 19:31:45 +09:00
testing 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.) 2019-09-26 23:17:15 +00:00
basics.md Updates for recent CMake changes, more info about languages 2019-07-31 11:36:19 -04:00
features.md Some updates from AmpGen work 2018-04-05 23:25:03 +02:00
install.md Adding cpack chapter 2018-03-31 08:12:42 +02:00
packages.md Better internal structure 2018-03-30 08:53:16 +02:00
projects.md Adding catch and some fixes 2018-03-30 15:15:37 +02:00
testing.md Adding extended example 2019-08-07 05:06:55 +00:00