Skip to content

Commit

Permalink
add CMAKE_INSTALL_PREFIX in README
Browse files Browse the repository at this point in the history
  • Loading branch information
shaomeng authored Apr 2, 2024
1 parent f05b93c commit d87bdd0
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ SPERR requires 1) a working C++ compiler and 2) CMake tools to build. On a Unix-
the build steps are the following:

```bash
git clone https://github.com/NCAR/SPERR.git # clone the repo
mkdir SPERR/build # create the build directory
cd SPERR/build # enter the build directory
cmake .. # Linux: use cmake to configure the project (with OpenMP)
cmake -DUSE_OMP=OFF .. # Mac: use cmake to configure the project (OpenMP disabled)
make -j 8 # build the project
ctest . # run unit tests, which should have 100% tests passed
make install # install the library and CLI tools to a designated directory.
git clone https://github.com/NCAR/SPERR.git # clone the repo
mkdir SPERR/build # create the build directory
cd SPERR/build # enter the build directory
cmake .. # Linux: use cmake to configure the project (with OpenMP)
cmake -DUSE_OMP=OFF .. # Mac: use cmake to configure the project (OpenMP disabled)
cmake -DCMAKE_INSTALL_PREFIX=/my/install/dir .. # Optional: specify a directory to install SPERR. The default is /usr/local .
make -j 8 # build the project
ctest . # run unit tests, which should have 100% tests passed
make install # install the library and CLI tools to a specified directory.
```

## Plugin for HDF5
Expand Down

0 comments on commit d87bdd0

Please sign in to comment.