-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ee1a55
commit db936b6
Showing
7 changed files
with
228 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
Installation | ||
=============== | ||
|
||
conda/mamaba | ||
~~~~~~~~~~~~~~~~ | ||
|
||
.. note :: | ||
aare is developing rapidly. Check for the latest release by | ||
using: **conda search aare -c slsdetectorgroup** | ||
.. code-block:: bash | ||
# Install a specific version: | ||
conda install aare=2024.11.11.dev0 -c slsdetectorgroup | ||
cmake (development install) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
git clone [email protected]:slsdetectorgroup/aare.git --branch=v1 #or using http... | ||
mkdir build | ||
cd build | ||
#configure using cmake | ||
cmake ../aare | ||
#build (replace 4 with the number of threads you want to use) | ||
make -j4 | ||
# add the build folder to your PYTHONPATH | ||
cmake install and use in your C++ project | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
#build and install aare | ||
git clone [email protected]:slsdetectorgroup/aare.git --branch=v1 #or using http... | ||
mkdir build | ||
cd build | ||
#configure using cmake | ||
cmake ../aare -DCMAKE_INSTALL_PREFIX=/where/to/put/aare | ||
#build (replace 4 with the number of threads you want to use) | ||
make -j4 | ||
#install | ||
make install | ||
#Now configure your project | ||
cmake .. -DCMAKE_PREFIX_PATH=SOME_PATH | ||
cmake options | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
For detailed options see the CMakeLists.txt file in the root directory of the project. | ||
|
||
.. code-block:: bash | ||
# usage (or edit with ccmake .) | ||
cmake ../aare -DOPTION1=ON -DOPTION2=OFF | ||
**AARE_SYSTEM_LIBRARIES "Use system libraries" OFF** | ||
|
||
Use system libraries instead of using FetchContent to pull in dependencies. Default option is off. | ||
|
||
|
||
**AARE_PYTHON_BINDINGS "Build python bindings" ON** | ||
|
||
Build the Python bindings. Default option is on. | ||
|
||
.. warning :: | ||
If you have a newer system Python compared to the one in your virtual environment, | ||
you might have to pass -DPython_FIND_VIRTUALENV=ONLY to cmake. | ||
**AARE_TESTS "Build tests" OFF** | ||
|
||
Build unit tests. Default option is off. | ||
|
||
**AARE_EXAMPLES "Build examples" OFF** | ||
|
||
**AARE_DOCS "Build documentation" OFF** | ||
|
||
Build documentation. Needs doxygen, sphinx and breathe. Default option is off. | ||
Requires a separate make docs. | ||
|
||
**AARE_VERBOSE "Verbose output" OFF** | ||
|
||
**AARE_CUSTOM_ASSERT "Use custom assert" OFF** | ||
|
||
Enable custom assert macro to check for errors. Default option is off. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Requirements | ||
============================================== | ||
|
||
- C++17 compiler (gcc 8/clang 7) | ||
- CMake 3.14+ | ||
|
||
**Internally used libraries** | ||
|
||
.. note :: | ||
These can also be picked up from the system/conda environment by specifying: | ||
-DAARE_SYSTEM_LIBRARIES=ON during the cmake configuration. | ||
- pybind11 | ||
- fmt | ||
- nlohmann_json | ||
- ZeroMQ | ||
|
||
**Extra dependencies for building documentation** | ||
|
||
- Sphinx | ||
- Breathe | ||
- Doxygen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
RawFile | ||
=================== | ||
|
||
.. py:currentmodule:: aare | ||
.. autoclass:: RawFile | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters