Adding igloo to test proj. Since it doesn't have any cpp files, I can include it directly, no need to setup a separate project.

This commit is contained in:
Brian 2014-02-20 12:16:30 -07:00
parent 3de19a71ef
commit 3657230298
4 changed files with 74 additions and 78 deletions

22
tests/.gitignore vendored
View file

@ -1,12 +1,12 @@
# Since we're using premake4, only include test source file and the premake4.lua,
# everything else can go.
*
!.gitignore
!.gitkeep
!main.cpp
!premake4.lua
!igloo/
!tests/
# Since we're using premake4, only include test source file and the premake4.lua,
# everything else can go.
*
!.gitignore
!.gitkeep
!main.cpp
!premake4.lua
!igloo/
!tests/*.h
!*.h

View file

@ -1,10 +1,13 @@
#include "math/Vector3.h"
// Testing Headers
#include "tests/Vector3Tests.h"
int main()
{
return 0;
#include "math/Vector3.h"
// Testing Headers
#include <igloo/igloo_alt.h>
#include "tests/TestsVector3.h"
int main()
{
return 0;
}

View file

@ -1,50 +1,52 @@
-- 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 { "x64", "debug" }
targetsuffix "x64_d"
configuration { "x64", "release" }
targetsuffix "x64"
configuration "Debug"
defines { "DEBUG", "USE_CHEATS", "TRACE" }
flags { "Symbols" }
targetsuffix "_d"
configuration "Release"
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
-- 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",
".",
"igloo"
}
configuration { "x64", "debug" }
targetsuffix "x64_d"
configuration { "x64", "release" }
targetsuffix "x64"
configuration "Debug"
defines { "DEBUG", "USE_CHEATS", "TRACE" }
flags { "Symbols" }
targetsuffix "_d"
configuration "Release"
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
flags { "Optimize" }

View file

@ -1,9 +0,0 @@
#ifndef __VECTOR3TESTS_H__
#define __VECTOR3TESTS_H__
class Vector3Tests // inherit from UnitTest
{
public:
};
#endif //__VECTOR3TESTS_H__