You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ All of the packages required to build & run the library, tests, & documentation
19
19
-[GoogleTest](https://google.github.io/googletest/) - (optional) needed to build the tests
20
20
-[LCOV](https://wiki.documentfoundation.org/Development/Lcov) - (optional) needed to get test coverage
21
21
22
-
### Building
22
+
### Building the C++ library & executable
23
23
This can be built using a conda environment. This way, the cmake should be able to find the boost and sundials dependencies automatically. When using conda to manage the dependencies:
24
24
25
25
1. Be sure to activate the related env the next time after login.
@@ -37,6 +37,33 @@ cmake --build .
37
37
cmake --install . (if desired)
38
38
```
39
39
40
+
### Building the Python extension
41
+
Similar to building the C++ library & executable, with the exception that the Python cmake target (pyPhotosynthesis) should be passed to the build command and the ``Python`` component should be specified in the install command if only the Python extension should be installed.
42
+
43
+
```
44
+
mkdir build
45
+
cd build
46
+
cmake .. -DBUILD_PYTHON:BOOL=ON
47
+
cmake --build . --target pyPhotosynthesis
48
+
cmake --install . --component Python (if desired)
49
+
```
50
+
51
+
The Python extension has the name ``ePhotosynthesis`` and can be used to run drivers from Python. E.g.
The documentation is not automatically built. To build the docs run the following from the build directory (requires Doxygen)
42
69
```
@@ -47,7 +74,7 @@ cmake --build . --target docs
47
74
This will build the documentation and put the resulting files in the doc directory.
48
75
49
76
### Tests
50
-
The tests are not automatically built. To build and run the tests, can be run the following from the build directory (requires GoogleTest)
77
+
The tests are not automatically built. To build and run the tests, can be run the following from the build directory (requires GoogleTest). If ``-DBUILD_PYTHON:BOOL=ON`` is passed to the configuration step, the Python tests will also be run.
0 commit comments