mirror of
https://github.com/FairRootGroup/FairLogger.git
synced 2025-10-13 00:31:12 +00:00
Lightweight and fast C++ Logging Library
In general angular brackets are used for external headers, while quotes are used for internal ones. Is there any particular reason not to follow the conventions? While this is admittedly left to the compiler implementor by the standard, some implementations, like gcc, do have a peculiar behavior for the two kind of `include` and the current solution might end up including something unwanted, especially given the quite "common" name (Logger) used. |
||
---|---|---|
cmake | ||
logger | ||
test | ||
.gitignore | ||
CMakeLists.txt | ||
CTestConfig.cmake | ||
Dart.sh | ||
example.png | ||
FairLoggerTest.cmake | ||
Jenkinsfile | ||
Jenkinsfile.nightly | ||
LICENSE | ||
README.md |
FairLogger
Lightweight and fast C++ Logging Library
Branch | Build Status |
---|---|
master |
|
dev |
Installation
git clone https://github.com/FairRootGroup/FairLogger
mkdir FairLogger_build && cd FairLogger_build
cmake -DCMAKE_INSTALL_PREFIX=./FairLogger_install ../FairLogger
cmake --build . --target install
Usage
In your CMakeLists.txt
:
find_package(FairLogger)
If FairLogger is not installed in system directories, you can hint the installation location:
set(CMAKE_PREFIX_PATH /path/to/FairLogger/installation ${CMAKE_PREFIX_PATH})
find_package(FairLogger)
find_package(FairLogger)
will define an imported target FairLogger::FairLogger
.
CMake options
On command line:
-DDISABLE_COLOR=ON
disables coloured console output.-DBUILD_TESTING=OFF
disables building of unit tests.
License
GNU Lesser General Public Licence (LGPL) version 3, see LICENSE.
Copyright (C) 2017-2018 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH