chore: add eigen library for vector math

This commit is contained in:
Jan 2024-05-12 16:35:46 +02:00
parent b29089a61f
commit e0dd0ac9dc
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
5 changed files with 30 additions and 0 deletions

3
.gitmodules vendored
View File

@ -13,3 +13,6 @@
[submodule "thirdparty/json"] [submodule "thirdparty/json"]
path = thirdparty/json path = thirdparty/json
url = https://github.com/nlohmann/json.git url = https://github.com/nlohmann/json.git
[submodule "thirdparty/eigen"]
path = thirdparty/eigen
url = https://gitlab.com/libeigen/eigen.git

View File

@ -84,6 +84,7 @@ workspace "OpenAssetTools"
-- ThirdParty -- ThirdParty
-- ======================== -- ========================
include "thirdparty/catch2.lua" include "thirdparty/catch2.lua"
include "thirdparty/eigen.lua"
include "thirdparty/libtomcrypt.lua" include "thirdparty/libtomcrypt.lua"
include "thirdparty/libtommath.lua" include "thirdparty/libtommath.lua"
include "thirdparty/json.lua" include "thirdparty/json.lua"
@ -95,6 +96,7 @@ include "thirdparty/zlib.lua"
-- ThirdParty group: All projects that are external dependencies -- ThirdParty group: All projects that are external dependencies
group "ThirdParty" group "ThirdParty"
catch2:project() catch2:project()
eigen:project()
libtommath:project() libtommath:project()
libtomcrypt:project() libtomcrypt:project()
json:project() json:project()

View File

@ -55,6 +55,7 @@ function ObjWriting:project()
Utils:include(includes) Utils:include(includes)
minilzo:include(includes) minilzo:include(includes)
minizip:include(includes) minizip:include(includes)
eigen:include(includes)
json:include(includes) json:include(includes)
libtomcrypt:include(includes) libtomcrypt:include(includes)

1
thirdparty/eigen vendored Submodule

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

23
thirdparty/eigen.lua vendored Normal file
View File

@ -0,0 +1,23 @@
eigen = {}
function eigen:include(includes)
if includes:handle(self:name()) then
includedirs {
path.join(ThirdPartyFolder(), "eigen", "Eigen")
}
end
end
function eigen:link()
end
function eigen:use()
end
function eigen:name()
return "eigen"
end
function eigen:project()
end