Add GSL dependency

This commit is contained in:
momo5502 2019-01-05 14:55:37 +01:00
parent 463f2d47b2
commit befafe7d29
4 changed files with 25 additions and 0 deletions

3
.gitmodules vendored
View File

@ -14,3 +14,6 @@
path = deps/HDiffPatch path = deps/HDiffPatch
url = https://github.com/sisong/HDiffPatch.git url = https://github.com/sisong/HDiffPatch.git
branch = master branch = master
[submodule "deps/GSL"]
path = deps/GSL
url = https://github.com/Microsoft/GSL.git

1
deps/GSL vendored Submodule

@ -0,0 +1 @@
Subproject commit 0f68d133fa6fd2973951b8aaab481e34bbfd2cf4

19
deps/premake/gsl.lua vendored Normal file
View File

@ -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)

View File

@ -41,6 +41,8 @@
#include <patch.h> #include <patch.h>
#include <tomcrypt.h> #include <tomcrypt.h>
#include <gsl/gsl>
#pragma comment (lib, "gdiplus.lib") #pragma comment (lib, "gdiplus.lib")
#pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "ws2_32.lib")