Skip to content

Commit

Permalink
Added matching of LOM PMT + documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusDittmer committed Sep 4, 2024
1 parent 51afa7b commit 859eca0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
28 changes: 0 additions & 28 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,6 @@ find_package(OpenSSL REQUIRED)

# For logging with spdlog
find_package(spdlog REQUIRED)
if(NOT spdlog_FOUND)
message(STATUS "spdlog not found. Will download and build it.")

set(SPDLOG_INSTALL_DIR ${CMAKE_BINARY_DIR}/spdlog-install)

ExternalProject_Add(
spdlog_external
GIT_REPOSITORY https://github.com/gabime/spdlog.git
GIT_TAG v1.11.0 # Specify the version you want
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${SPDLOG_INSTALL_DIR}
-DSPDLOG_BUILD_EXAMPLES=OFF
-DSPDLOG_BUILD_TESTS=OFF
)

set(spdlog_INCLUDE_DIRS ${SPDLOG_INSTALL_DIR}/include)
set(spdlog_LIBRARIES ${SPDLOG_INSTALL_DIR}/lib/libspdlog.a)

add_library(spdlog::spdlog STATIC IMPORTED)
set_target_properties(spdlog::spdlog PROPERTIES
IMPORTED_LOCATION ${spdlog_LIBRARIES}
INTERFACE_INCLUDE_DIRECTORIES ${spdlog_INCLUDE_DIRS}
)
add_dependencies(spdlog::spdlog spdlog_external)
else()
message(STATUS "Found spdlog: ${spdlog_VERSION}")
endif()


# Include OpenSSL's headers in the project
include_directories(${OPENSSL_INCLUDE_DIR})
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ For the latest updates and information, check our [GitHub repository](https://gi
Install the required dependencies using:

```bash
sudo apt-get -y install libxerces-c-dev libxmu-dev libxpm-dev libglu1-mesa-dev qtbase5-dev libmotif-dev libargtable2-0 libboost-all-dev libqt53dextras5 libfmt-dev
sudo apt-get -y install libxerces-c-dev libxmu-dev libxpm-dev libglu1-mesa-dev qtbase5-dev libmotif-dev libargtable2-0 libboost-all-dev libqt53dextras5 libfmt-dev spdlog-dev
```

Note: spdlog will be automatically installed by CMake if not found on your system.

### Installing ROOT

1. Download the latest ROOT binary from [ROOT's official website](https://root.cern/releases/) (e.g., version 6.28/04 at the time of writing), or compile from source.
Expand Down

0 comments on commit 859eca0

Please sign in to comment.