added README to examples

This commit is contained in:
Charlton, Scott R 2020-10-28 20:43:30 -06:00
parent f5e8d59e52
commit f39a9de6b5
2 changed files with 46 additions and 0 deletions

View File

@ -14,6 +14,7 @@ ${IPhreeqc_BINARY_DIR}/examples/fortran/advect/CMakeLists.txt
advect.F90
ic
phreeqc.dat
README.txt
)
if (IPHREEQC_FORTRAN_TESTING AND IPHREEQC_ENABLE_MODULE)

45
advect/README.txt Normal file
View File

@ -0,0 +1,45 @@
Example usage
--------------------------------------------------------------------------------------
Windows
--------------------------------------------------------------------------------------
Configure, build, test and install IPhreeqc
1. cd iphreeqc-@VERSION@-@REVISION@
2. mkdir _build
3. cd _build
4. cmake -S .. -B . -DCMAKE_INSTALL_PREFIX:PATH=c:/Users/charlton/iphreeqc
5. cmake --build . --config debug
6. ctest -C debug
7. cmake --build . --config release
8. ctest -C release
9. cmake --build . --config debug --target install
10. cmake --build . --config release --target install
Build example:
1. cd c:\Users\charlton\iphreeqc\examples\fortran\advect
2. mkdir _build
3. cd _build
4. cmake -DCMAKE_PREFIX_PATH:PATH=c:/Users/charlton/iphreeqc ..
5. cmake --build . --config release
--------------------------------------------------------------------------------------
Linux/macOS
--------------------------------------------------------------------------------------
Configure, build, test and install IPhreeqc
1. cd iphreeqc-@VERSION@-@REVISION@
2. mkdir _build
3. cd _build
4. cmake -S .. -B . -DCMAKE_INSTALL_PREFIX:PATH=/home/charlton/iphreeqc
5. cmake --build .
6. ctest
7. cmake --build . --target install
Build example:
1. cd /home/charlton/iphreeqc/share/doc/IPhreeqc/examples/fortran/advect
2. mkdir _build
3. cd _build
4. cmake -DCMAKE_PREFIX_PATH:PATH=/home/charlton/iphreeqc ..
5. cmake --build .