Skip to content

Commit

Permalink
Merge pull request #91 from asalzburger/doc-update-readme
Browse files Browse the repository at this point in the history
doc: update main README page
  • Loading branch information
asalzburger authored Oct 8, 2024
2 parents 3667032 + 42d431b commit eab1ab5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ if(ACTSVG_BUILD_META)
add_subdirectory(meta)
endif()

option(ACTSVG_BUILD_WEB "Build the webpage builder interface of ACTSVG" ON)
option( "Build the webpage builder interface of ACTSVG" ON)
if(ACTSVG_BUILD_WEB)
add_subdirectory(web)
endif()

option(ACTSVG_BUILD_TESTING "Build the (unit) tests of ACTSVG" OFF)

if(ACTSVG_BUILD_TESTING OR ACTSVG_BUILD_EXAMPLES)
if(ACTSVG_BUILD_TESTING)
add_subdirectory(data)
endif()

Expand All @@ -70,7 +70,7 @@ if(ACTSVG_BUILD_TESTING)
add_subdirectory(tests)
endif()

if(ACTSVG_BUILD_TESTING OR ACTSVG_BUILD_EXAMPLES)
if(ACTSVG_BUILD_TESTING)
# Set up GoogleTest.
option(
ACTSVG_SETUP_GOOGLETEST
Expand All @@ -91,7 +91,7 @@ if(ACTSVG_BUILD_TESTING OR ACTSVG_BUILD_EXAMPLES)
endif()
endif()

option(ACTSVG_BUILD_PYTHON_BINDINGS "Build the python bindings of ACTSVG" ON)
option(ACTSVG_BUILD_PYTHON_BINDINGS "Build the python bindings of ACTSVG" OFF)
if(ACTSVG_BUILD_PYTHON_BINDINGS)
find_package(Python 3.8 REQUIRED COMPONENTS Interpreter Development)
option(
Expand Down
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# actsvg

An SVG based C++17 plotting library for ACTS detectors, surfaces and relations.
An SVG based C++20 plotting library for ACTS detectors, surfaces and relations.

This library has itself no dependency, simply for unittesting it relies on `googletest`.
In case `actsvg` is built with python bindings, also `pybind11` is used as a dependency.

## Core module

This module has the entire definition and plotting functionality.
This module has the core definition and plotting functionality for primitives.

## Meta module

Expand Down Expand Up @@ -36,4 +38,21 @@ An example for an endcap sheet:

An example for a barrel sheet (module info display):

<img src="https://github.com/acts-project/actsvg/blob/main/docs/svg/odd_barrel_sheet_module_info.svg" width=600/>
<img src="https://github.com/acts-project/actsvg/blob/main/docs/svg/odd_barrel_sheet_module_info.svg" width=600/>

## Getting started

To build `actsvg` using CMake execute the following

```sh
cmake -GNinja -S <actsvg_src> -B <actsvg_build> -DCMAKE_INSTALL_PREFIX=<actsvg_installed>
-DCMAKE_CXX_STANDARD=20
cmake --build $bdir -j $cthreads --target install
```

CMake Build options are (and their defaults)
| ACTSVG_BUILD_META | Build the meta module of the project | ON |
| ACTSVG_BUILD_WEB | Build the web module of the project | ON |
| ACTSVG_BUILD_TESTING | Building the testing suite | OFF |
| ACTSVG_BUILD_PYTHON_BINDINGS | Build python bindings for the project | OFF |

0 comments on commit eab1ab5

Please sign in to comment.