Move ComputeTest,GraphicsTest,RenderTest and Std140Debug to the tests folder
Also renamed NazaraUnitTests to UnitTests
This commit is contained in:
15
tests/UnitTests/resources.cpp
Normal file
15
tests/UnitTests/resources.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <filesystem>
|
||||
|
||||
std::filesystem::path GetAssetDir()
|
||||
{
|
||||
static std::filesystem::path resourceDir = []
|
||||
{
|
||||
std::filesystem::path dir = "assets";
|
||||
if (!std::filesystem::is_directory(dir) && std::filesystem::is_directory("../.." / dir))
|
||||
dir = "../.." / dir;
|
||||
|
||||
return dir / "tests";
|
||||
}();
|
||||
|
||||
return resourceDir;
|
||||
}
|
||||
Reference in New Issue
Block a user