Skip to content

Commit 69eb0b3

Browse files
committed
Add docs for googletest
1 parent 3dae312 commit 69eb0b3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ IF (BUILD_TESTING)
225225
enable_testing()
226226
find_package(Threads)
227227
set(CMAKE_CXX_STANDARD_REQUIRED ON)
228-
find_package(GTest HINTS /usr/local/lib/ PATHS ${GTEST_DIR})
228+
find_package(GTest HINTS /usr/local/lib/ ${GTEST_DIR})
229229
if(NOT ${GTEST_FOUND})
230230
include(FetchContent)
231231
FetchContent_Declare(

doc/install.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ If Libxc is not installed in standard path (i.e. installed with a custom prefix
124124
cmake -B build -DLibxc_DIR=~/libxc
125125
```
126126

127-
To build tests for abacus, define `BUILD_TESTING` flag.
127+
To build tests for abacus, define `BUILD_TESTING` flag. You can also specify path to local installation of [Googletest](https://github.com/google/googletest) by setting `GTEST_DIR` flags. If not found in local, the configuration process will try to download it automatically.
128128

129129
```bash
130130
cmake -B build -DBUILD_TESTING=1
@@ -139,6 +139,8 @@ cmake --build build -j9
139139
cmake --install build
140140
```
141141

142+
`-j9` specifies the number of jobs to run simultaneously. You can change the number on your need: set to the number of CPU cores to gain the best performance.
143+
142144
[back to top](#download-and-install)
143145

144146
### Build ABACUS with make

0 commit comments

Comments
 (0)