IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 3f8e64dd authored by ralfulrich's avatar ralfulrich
Browse files

added LANGUAGES to cmake project

parent a7a89f47
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required (VERSION 3.4.3) cmake_minimum_required (VERSION 3.4.3)
project (corsika VERSION 8.0.0 DESCRIPTION "CORSIKA C++ project") project (corsika VERSION 8.0.0 DESCRIPTION "CORSIKA C++ project" LANGUAGES C CXX)
# ignore many irrelevant Up-to-date messages during install # ignore many irrelevant Up-to-date messages during install
set (CMAKE_INSTALL_MESSAGE LAZY) set (CMAKE_INSTALL_MESSAGE LAZY)
......
#ifndef _include_logging_h_
#define _include_logging_h_
#include <logger.h>
#include <map>
#include <string>
#include <any>
class Logging {
Logging() {}
public:
static Logging& GetInstance() { static Logging fgLog; return fgLog; }
template<typename TLogger>
void AddLogger(const std::string& name, const TLogger& logger) { fLoggers[name] = logger; }
auto& GetLogger(const std::string& name) { return fLoggers[name]; }
private:
std::map<std::string, std::any> fLoggers;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment