Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xs-test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patrick Chen
xs-test
Commits
47440fc8
Commit
47440fc8
authored
Aug 27, 2018
by
Patrick Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add first header file
parent
094305ad
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
Makefile
Makefile
+3
-3
Config.h
include/Config.h
+20
-0
xs-test.cc
src/xs-test.cc
+1
-1
No files found.
Makefile
View file @
47440fc8
...
@@ -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)
$<
...
...
include/Config.h
0 → 100644
View file @
47440fc8
#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
src/xs-test.cc
View file @
47440fc8
#include <iostream>
#include <iostream>
// #include "Config.hpp
"
#include "Config.h
"
#include "nlohmann/json.hpp"
#include "nlohmann/json.hpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment