From befafe7d291bc9ebb737ccf12809bb2653a664ce Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 5 Jan 2019 14:55:37 +0100 Subject: [PATCH] Add GSL dependency --- .gitmodules | 3 +++ deps/GSL | 1 + deps/premake/gsl.lua | 19 +++++++++++++++++++ src/std_include.hpp | 2 ++ 4 files changed, 25 insertions(+) create mode 160000 deps/GSL create mode 100644 deps/premake/gsl.lua diff --git a/.gitmodules b/.gitmodules index 760693b..4bf1865 100644 --- a/.gitmodules +++ b/.gitmodules @@ -14,3 +14,6 @@ path = deps/HDiffPatch url = https://github.com/sisong/HDiffPatch.git branch = master +[submodule "deps/GSL"] + path = deps/GSL + url = https://github.com/Microsoft/GSL.git diff --git a/deps/GSL b/deps/GSL new file mode 160000 index 0000000..0f68d13 --- /dev/null +++ b/deps/GSL @@ -0,0 +1 @@ +Subproject commit 0f68d133fa6fd2973951b8aaab481e34bbfd2cf4 diff --git a/deps/premake/gsl.lua b/deps/premake/gsl.lua new file mode 100644 index 0000000..7a2daf6 --- /dev/null +++ b/deps/premake/gsl.lua @@ -0,0 +1,19 @@ +gsl = { + source = path.join(dependencies.basePath, "GSL"), +} + +function gsl.import() + gsl.includes() +end + +function gsl.includes() + includedirs { + path.join(gsl.source, "include") + } +end + +function gsl.project() + +end + +table.insert(dependencies, gsl) diff --git a/src/std_include.hpp b/src/std_include.hpp index 3516d08..c2373fb 100644 --- a/src/std_include.hpp +++ b/src/std_include.hpp @@ -41,6 +41,8 @@ #include #include +#include + #pragma comment (lib, "gdiplus.lib") #pragma comment(lib, "ws2_32.lib")