Commit 47440fc8 authored by Patrick Chen's avatar Patrick Chen

add first header file

parent 094305ad
...@@ -8,7 +8,7 @@ BUILD_DIR=$(REPO_DIR)/build ...@@ -8,7 +8,7 @@ BUILD_DIR=$(REPO_DIR)/build
CXX=g++ CXX=g++
CXX_FLAGS=-g -std=c++14 \ CXX_FLAGS=-g -std=c++14 \
-I/usr/local/include \ -I/usr/local/include \
-I$(INCLUDE_DIR)/include \ -I$(INCLUDE_DIR) \
-I$(SUBMOD_DIR)/json/single_include -I$(SUBMOD_DIR)/json/single_include
LD_FLAGS=-L/usr/local/lib \ LD_FLAGS=-L/usr/local/lib \
-lexchange_server -lexchange_server
...@@ -19,10 +19,10 @@ XSTEST_OBJS=$(subst $(REPO_DIR),$(BUILD_DIR),$(XSTEST_SRCS:.cc=.o)) ...@@ -19,10 +19,10 @@ XSTEST_OBJS=$(subst $(REPO_DIR),$(BUILD_DIR),$(XSTEST_SRCS:.cc=.o))
all: $(BUILD_DIR)/xs-test all: $(BUILD_DIR)/xs-test
$(BUILD_DIR)/xs-test: $(XSTEST_OBJS) $(XSTEST_HDRS) $(BUILD_DIR)/xs-test: $(XSTEST_OBJS)
$(CXX) -o $@ $(LD_FLAGS) $(XSTEST_OBJS) $(CXX) -o $@ $(LD_FLAGS) $(XSTEST_OBJS)
$(BUILD_DIR)/%.o: $(REPO_DIR)/%.cc $(BUILD_DIR)/%.o: $(REPO_DIR)/%.cc $(XSTEST_HDRS)
mkdir -p $(dir $@) mkdir -p $(dir $@)
$(CXX) -o $@ -c $(CXX_FLAGS) $< $(CXX) -o $@ -c $(CXX_FLAGS) $<
......
#ifndef XS_TEST_CONFIG_H_INCLUDED
#define XS_TEST_CONFIG_H_INCLUDED
#include "nlohmann/json.hpp"
#include <memory>
namespace xs { namespace test
{
class Config final
{
public:
static std::unique_ptr<Config> parse(const std::string& text) noexcept;
private:
};
} }
#endif
#include <iostream> #include <iostream>
// #include "Config.hpp" #include "Config.h"
#include "nlohmann/json.hpp" #include "nlohmann/json.hpp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment