1
0
mirror of synced 2024-12-22 12:40:00 +01:00

168 Commits

Author SHA1 Message Date
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
Henry Schreiner
3b949381d5 Merge branch 'master' into 'master'
Fix a typo in fetch.md

See merge request CLIUtils/modern-cmake!20
2019-09-23 20:01:40 +00:00
Henry Schreiner
df3a6f19af Merge branch 'henryiii-installing' into 'master'
Installing updates

Closes #17

See merge request CLIUtils/modern-cmake!22
2019-09-23 20:01:19 +00:00
Henry Schreiner
369498d1f9 Installing updates 2019-09-23 15:38:22 -04:00
Henry Schreiner
21d6511f1a Starting on initial 3.16 dev notes 2019-09-10 11:02:09 -04:00
Henry Schreiner
a8714b16ab CMake 3.15.3 2019-09-09 11:35:00 -04:00
Henry Schreiner
ae2c553629 Merge branch 'patch-1' into 'master'
Corrected current directories in install examples (running.md)

See merge request CLIUtils/modern-cmake!21
2019-08-30 11:48:16 +00:00
Stanowczo
085c3f5ae4 Corrected current directories in install examples (running.md) 2019-08-30 11:48:16 +00:00
Takahiro Ueda
fa0276ae61 Fix a typo in fetch.md
Missing ")".
2019-08-23 19:31:45 +09:00
Henry Schreiner
cf280f2f1f Mention modern CMake talk and workshop 2019-08-13 14:13:28 -04:00
Henry Schreiner
7ccc37da2f Update CMake versions 2019-08-12 10:46:29 -04:00
Henry Schreiner
f390446811 Mention build options 2019-08-12 10:09:51 -04:00
Henry Schreiner
3669dcb0b8 Mention -v for 3.14 2019-08-12 09:53:49 -04:00
Henry Fredrick Schreiner
9ffac6015c Adding debugger example 2019-08-09 23:00:37 -04:00
Henry Schreiner
92598e53e1 Promoting the new way 2019-08-08 17:20:21 -04:00
Henry Schreiner
674c784bf0 List targets 2019-08-08 17:10:25 -04:00
Henry Schreiner
b7d24d1a22 Fix deleted link 2019-08-08 16:55:50 -04:00
Henry Schreiner
89c222da2c Updates for ROOT 2019-08-08 16:18:42 -04:00
Henry Schreiner
f19057232c Adding minor updates to structure based on recent new example 2019-08-07 17:13:17 -04:00
Henry Schreiner
d68014e579 Fix #14, generator expression does not need extra quotes for path 2019-08-07 15:50:24 -04:00
Henry Schreiner
e724203afd Merge branch 'henryiii-extended-example' into 'master'
Adding extended example

Closes #3

See merge request CLIUtils/modern-cmake!19
2019-08-07 05:06:55 +00:00
Henry Schreiner
90ff509892 Adding extended example 2019-08-07 05:06:55 +00:00
Henry Schreiner
f0f8878b57 Merge branch 'master' into 'master'
Updated to running.md

See merge request CLIUtils/modern-cmake!18
2019-08-06 22:07:19 +00:00
EdsterG
22ef3b55b8 Updated to running.md 2019-08-06 22:07:19 +00:00
Henry Schreiner
9e02bd6289 Merge branch 'patch-1' into 'master'
fix typo in variables.md

See merge request CLIUtils/modern-cmake!17
2019-08-06 22:06:41 +00:00
Henry Schreiner
2763eb48a0 More info from lesson work 2019-07-31 17:15:08 -04:00
Henry Schreiner
56a6387308 Quick fix 2019-07-31 12:29:33 -04:00
Henry Schreiner
89e7e0a73e Updates for recent CMake changes, more info about languages 2019-07-31 11:36:19 -04:00
Henry Schreiner
1b88e8e968 Minor touchup to IDEs section 2019-07-30 17:49:02 -04:00
Henry Fredrick Schreiner
fc91530b24 Updated to 3.15.1 2019-07-28 21:10:18 -04:00
Henry Schreiner
27609e8cd0 Another resource added 2019-07-19 14:02:28 -04:00
Henry Schreiner
8c3546ce8c Fix #13 and drop mention of line comment breaking function calls, they seem to work correctly 2019-07-19 11:37:18 -04:00
Henry Schreiner
70aba15474 Adding note on exporting 2019-07-19 11:22:54 -04:00
Henry Fredrick Schreiner
5a23bc2438 Update to CMake 3.15 2019-07-18 00:37:04 -04:00
A Gruber
1400e58b0a fix typo in variables.md 2019-06-24 13:32:29 +00:00
Henry Fredrick Schreiner
30c83f03e8 Adding fix for #10 2019-05-16 21:17:08 +02:00
Henry Fredrick Schreiner
642508b4ab Minor fix 2019-05-15 16:59:20 +02:00
Henry Fredrick Schreiner
f0b2c9be26 More links and versions 2019-05-15 14:23:03 +02:00
Henry Fredrick Schreiner
c3ac734d2a Update CMake version 2019-05-15 14:06:54 +02:00
Henry Schreiner
cf6371720a Merge branch 'default-installs' into 'master'
Move default cmake versions by system to install page

See merge request CLIUtils/modern-cmake!16
2019-05-10 06:49:18 +00:00
bgklug
0b1cfbe53b Move default cmake versions by system to install page 2019-05-06 17:42:25 -08:00
Henry Schreiner
aedf70607d Merge branch 'patch-1' into 'master'
fix typo

See merge request CLIUtils/modern-cmake!15
2019-05-06 07:20:59 +00:00
Arcturus
548040e179 fix typo 2019-05-06 07:20:59 +00:00
Henry Fredrick Schreiner
dd7232b23c Update 3.14.0 -> 3.14.1 2019-04-09 19:58:05 +02:00
Henry Fredrick Schreiner
5324b8342d Update to CMake 3.14 2019-03-20 17:23:38 -04:00
Henry Schreiner
dc9687eda5 Merge branch 'fix' into 'master'
FORTRAN -> Fortran

See merge request CLIUtils/modern-cmake!14
2019-03-17 06:24:37 +00:00
Mike Taves
7d4d9f716b Update basics.md 2019-03-16 06:45:11 +00:00
Henry Schreiner
f597ab5072 Merge branch 'master' into 'master'
fix a copy-paste error

See merge request CLIUtils/modern-cmake!12
2019-03-07 21:39:49 +00:00
Thomas Etter
fa4cd27710 fix a copy-paste error 2019-03-07 22:09:38 +01:00
Henry Schreiner
a0e56f1405 Merge branch 'patch-1' into 'master'
Removed erroneous '2'

See merge request CLIUtils/modern-cmake!11
2019-03-04 18:24:21 +00:00