-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
13 changed files
with
303 additions
and
201 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
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,7 @@ | ||
configure_file(${CMAKE_SOURCE_DIR}/doc/conf.py.in ${CMAKE_BINARY_DIR}/conf.py) | ||
|
||
add_custom_target( | ||
sphinx | ||
COMMENT "launching sphinx build" | ||
COMMAND sphinx-build --build ${SPHINX_BUILDER} --write-all -c ${CMAKE_BINARY_DIR} | ||
${CMAKE_SOURCE_DIR}/doc ${CMAKE_BINARY_DIR}/sphinx) |
This file was deleted.
Oops, something went wrong.
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,83 @@ | ||
################################### | ||
Build the project from source | ||
################################### | ||
|
||
Prerequisites | ||
############################## | ||
|
||
- C++ compiler (choose either one below) | ||
- gcc <span>≥</span> 14.3. | ||
- clang <span>≥</span> 18 | ||
- oneTBB | ||
- **(Optional)** ROOT <span>≥</span> 6.32 | ||
|
||
- (mini) Conda. See [this instruction](install_conda.md) to install miniconda quickly. | ||
|
||
.. warning:: | ||
DO NOT USE Conda to install ROOT. Use latest compiler to install ROOT from the source. | ||
|
||
Installation | ||
############################## | ||
|
||
Step 1: Clone the latest version | ||
------------------------------------ | ||
|
||
.. code-block:: bash | ||
git clone -b [latest version] https://github.com/YanzhaoW/srs-daq.git | ||
cd srs-daq | ||
git submodule update --init | ||
Step 2: Activate the Conda environment | ||
------------------------------------------- | ||
|
||
.. code-block:: bash | ||
conda env create -f environment.yml | ||
conda activate srs | ||
Step 3: Build the project | ||
------------------------------------ | ||
|
||
**Make sure conda environment `srs` is activated.** | ||
|
||
.. code-block:: bash | ||
cmake --workflow --preset default | ||
or | ||
|
||
.. code-block:: bash | ||
cmake --preset default -DCMAKE_INSTALL_PREFIX=[/usr/local] [optional settings] | ||
cmake --build ./build --target install -- -j[nproc] | ||
Following CMake preset optional settings are available: | ||
|
||
- `-DUSE_ROOT=` | ||
- `OFF` or `FALSE` (default). The program would only compile with ROOT if ROOT exists. | ||
- `ON` or `TRUE`. CMake configuration will fail if `ROOT` is not found. | ||
- `-DNO_ROOT=` | ||
- `OFF` or `FALSE` (default). Same as `-DUSE_ROOT=OFF`. | ||
- `ON` or `TRUE`. The program does NOT compiler with ROOT even if ROOT exists. | ||
|
||
For example, to disable the ROOT dependency, run the `cmake --preset` with: | ||
|
||
.. code-block:: bash | ||
cmake --preset default . -DNO_ROOT=TRUE | ||
Update to the latest version | ||
--------------------------------- | ||
|
||
srs-daq is under a continuous development. To update to the latest version, run the following git commands: | ||
|
||
.. code-block:: bash | ||
git fetch origin | ||
git checkout latest | ||
git submodule update --init | ||
After this, build the project again from Step 3. |
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,28 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = '@CMAKE_PROJECT_NAME@' | ||
copyright = '2024, Yanzhao Wang' | ||
author = 'Yanzhao Wang' | ||
release = '@CMAKE_PROJECT_VERSION@' | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = ["myst_parser"] | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = [] | ||
|
||
source_suffix = ['.rst', '.md', '.cpp'] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = 'alabaster' | ||
html_static_path = [] |
Oops, something went wrong.