Added cxxopts

This commit is contained in:
Lukasz 2019-11-14 08:18:00 +01:00
parent 9cf36a19b3
commit 2fac6035ab
4 changed files with 12 additions and 5 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "tinyxml2"]
path = tinyxml2
url = https://github.com/leethomason/tinyxml2.git
[submodule "cxxopts"]
path = cxxopts
url = https://github.com/jarro2783/cxxopts.git

View file

@ -1,6 +1,6 @@
OBJS = Build/main.o tinyxml2/tinyxml2.o
SOURCE = Src/main.cpp tinyxml2/tinyxml2.cpp
HEADER = tinyxml2/tinyxml2.h
INCLUDE = -I tinyxml2 -I cxxopts/include
OUT = svd2cpp
CC = g++
FLAGS = -g -c -Wall
@ -10,10 +10,10 @@ all: $(OBJS)
Build/main.o: Src/main.cpp
mkdir -p Build
$(CC) $(FLAGS) Src/main.cpp -o Build/main.o
$(CC) $(FLAGS) Src/main.cpp $(INCLUDE) -o Build/main.o
tinyxml2/tinyxml2.o:
$(MAKE) -C tinyxml2/make staticlib
$(MAKE) -C tinyxml2/ staticlib
clean:

View file

@ -1,3 +1,6 @@
#include <tinyxml2.h>
#include <cxxopts.hpp>
int main(){
}

1
cxxopts Submodule

@ -0,0 +1 @@
Subproject commit 073dd3e645fa0c853c3836f3788ca21c39af319d