Adding basic test project files

Added the main source file for running tests in. Added premake4.lua so
you can create a project for "any" platform/target of your choice.
Added gitignore to only add those basic files, ignore everything else.
This commit is contained in:
Brian 2014-02-19 21:51:55 -07:00
parent dcdf8538a8
commit 074862ea6c
3 changed files with 64 additions and 0 deletions

8
tests/.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
# Since we're using premake4, only include test source file and the premake4.lua,
# everything else can go.
*.*
!.gitignore
!main.cpp
!premake4.lua

View file

@ -0,0 +1,6 @@
#include "math/Vector3.h"
int main()
{
return 0;
}

50
tests/premake4.lua Normal file
View file

@ -0,0 +1,50 @@
-- http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Premake
-- http://industriousone.com/command-line-arguments
-- http://blog.assarbad.net/20120929/premake4-snippet-to-create-solution-names-depending-on-target-visual-studio-version/
solution "tests"
location "."
configurations { "Debug", "Release" }
platforms { "native", "x32", "x64", "universal" }
flags { "ExtraWarnings" }
configuration "Debug"
defines { "DEBUG", "TRACE" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG", "TRACE" }
flags { "Optimize" }
-- Project kinds
-- ConsoleApp
-- Makefile
-- SharedLib
-- StaticLib
-- WindowedApp
project "tests"
kind "ConsoleApp"
language "C++"
targetdir "bin"
files { "../src/**.cpp", "main.cpp" }
includedirs {
"../include",
}
configuration "Debug"
defines { "DEBUG", "USE_CHEATS", "TRACE" }
flags { "Symbols" }
targetsuffix "_d"
configuration "Release"
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
flags { "Optimize" }
configuration { "x64", "debug" }
targetsuffix "x64_d"
configuration { "x64", "release" }
targetsuffix "x64"