add easylogging
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -4,3 +4,6 @@
|
||||
[submodule "lib/src/libtins"]
|
||||
path = lib/src/libtins
|
||||
url = https://github.com/mfontanini/libtins.git
|
||||
[submodule "lib/src/easyloggingpp"]
|
||||
path = lib/src/easyloggingpp
|
||||
url = git@github.com:easylogging/easyloggingpp.git
|
||||
|
||||
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.3.2)
|
||||
project (121Nat)
|
||||
INCLUDE_DIRECTORIES(lib/src/jsoncpp/include)
|
||||
INCLUDE_DIRECTORIES(lib/src/libtins/include)
|
||||
INCLUDE_DIRECTORIES(lib/src/easyloggingpp/src/)
|
||||
ADD_SUBDIRECTORY(src)
|
||||
ADD_SUBDIRECTORY(lib/src/jsoncpp)
|
||||
ADD_SUBDIRECTORY(lib/src/libtins)
|
||||
|
||||
1
lib/src/easyloggingpp
Submodule
1
lib/src/easyloggingpp
Submodule
Submodule lib/src/easyloggingpp added at f926802dfb
@@ -1,5 +1,5 @@
|
||||
file(GLOB_RECURSE 121Nat_Src_Files "*.h" "*.cpp")
|
||||
add_executable(121Nat ${121Nat_Src_Files})
|
||||
add_executable(121Nat ${121Nat_Src_Files} ../lib/src/easyloggingpp/src/easylogging++.h)
|
||||
target_link_libraries (121Nat pthread tins jsoncpp_lib_static)
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
#include <json/json.h>
|
||||
#include <json/value.h>
|
||||
#include <fstream>
|
||||
#include "easylogging++.h"
|
||||
|
||||
INITIALIZE_EASYLOGGINGPP
|
||||
|
||||
template<typename Container>
|
||||
void delete_them(Container& c)
|
||||
@@ -22,7 +25,7 @@ int main(int argc, char** argv)
|
||||
if (argc < 2){
|
||||
return 0;
|
||||
}
|
||||
|
||||
LOG(INFO) << "Hello, world";
|
||||
otonat::NatMap::NatRangeList interfaceList;
|
||||
std::ifstream config_doc(argv[1], std::ifstream::binary);
|
||||
Json::Value root;
|
||||
|
||||
Reference in New Issue
Block a user