Skip to content

Commit fc900f2

Browse files
committed
Add googletest upgrade guide
1 parent 6b599a0 commit fc900f2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

source/tests/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Update googletest and googlemock
2+
3+
After updating, the following changes needs to be applied manually:
4+
5+
* https://github.com/cginternals/cmake-init/commit/6df2e5acd0111ca13f4a54f616a8e9e729f3fedc
6+
* https://github.com/cginternals/cmake-init/commit/da2b52c0b8b47989d779b8285c1a0294a71947ac
7+
* https://github.com/cginternals/cmake-init/commit/f505bef30fe3122d7bd3b8061fcf704fac452d7f
8+
* https://github.com/cginternals/cmake-init/commit/217786a6e8ab1c3a69ab899ec7fba06d5516452a
9+
10+
### Explicit diff
11+
12+
`googletest/googlemock/CMakeLists.txt`
13+
14+
Add `set(BUILD_SHARED_LIBS OFF)` after the call to `option(BUILD_SHARED_LIBS ...)`
15+
Add `set(CMAKE_MACOSX_RPATH OFF)` before the calls to `cxx_library(...)`
16+
Add `set_target_properties(gmock_main PROPERTIES FOLDER "Tests")` after the calls to `cxx_library(...)`
17+
Add `set_target_properties(gmock PROPERTIES FOLDER "Tests")` after the calls to `cxx_library(...)`
18+
19+
`googletest/googletest/CMakeLists.txt`
20+
21+
Add `set(BUILD_SHARED_LIBS OFF)` after the call to `option(BUILD_SHARED_LIBS ...)`
22+
Add `set(CMAKE_MACOSX_RPATH OFF)` before the calls to `cxx_library(...)`
23+
Add `set_target_properties(gtest_main PROPERTIES FOLDER "Tests")` after the calls to `cxx_library(...)`
24+
Add `set_target_properties(gtest PROPERTIES FOLDER "Tests")` after the calls to `cxx_library(...)`
25+
Comment out the calls to `install`

0 commit comments

Comments
 (0)