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:
parent
3de19a71ef
commit
3657230298
4 changed files with 74 additions and 78 deletions
22
tests/.gitignore
vendored
22
tests/.gitignore
vendored
|
@ -1,12 +1,12 @@
|
||||||
# Since we're using premake4, only include test source file and the premake4.lua,
|
# Since we're using premake4, only include test source file and the premake4.lua,
|
||||||
# everything else can go.
|
# everything else can go.
|
||||||
|
|
||||||
*
|
*
|
||||||
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!.gitkeep
|
!.gitkeep
|
||||||
!main.cpp
|
!main.cpp
|
||||||
!premake4.lua
|
!premake4.lua
|
||||||
!igloo/
|
!igloo/
|
||||||
!tests/
|
!tests/*.h
|
||||||
!*.h
|
!*.h
|
|
@ -1,10 +1,13 @@
|
||||||
#include "math/Vector3.h"
|
#include "math/Vector3.h"
|
||||||
|
|
||||||
// Testing Headers
|
// Testing Headers
|
||||||
#include "tests/Vector3Tests.h"
|
#include <igloo/igloo_alt.h>
|
||||||
|
|
||||||
int main()
|
#include "tests/TestsVector3.h"
|
||||||
{
|
|
||||||
|
|
||||||
return 0;
|
int main()
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
|
@ -1,50 +1,52 @@
|
||||||
-- http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Premake
|
-- http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Premake
|
||||||
-- http://industriousone.com/command-line-arguments
|
-- http://industriousone.com/command-line-arguments
|
||||||
-- http://blog.assarbad.net/20120929/premake4-snippet-to-create-solution-names-depending-on-target-visual-studio-version/
|
-- http://blog.assarbad.net/20120929/premake4-snippet-to-create-solution-names-depending-on-target-visual-studio-version/
|
||||||
|
|
||||||
solution "tests"
|
solution "tests"
|
||||||
|
|
||||||
location "."
|
location "."
|
||||||
configurations { "Debug", "Release" }
|
configurations { "Debug", "Release" }
|
||||||
platforms { "native", "x32", "x64", "universal" }
|
platforms { "native", "x32", "x64", "universal" }
|
||||||
flags { "ExtraWarnings" }
|
flags { "ExtraWarnings" }
|
||||||
|
|
||||||
configuration "Debug"
|
configuration "Debug"
|
||||||
defines { "DEBUG", "TRACE" }
|
defines { "DEBUG", "TRACE" }
|
||||||
flags { "Symbols" }
|
flags { "Symbols" }
|
||||||
|
|
||||||
configuration "Release"
|
configuration "Release"
|
||||||
defines { "NDEBUG", "TRACE" }
|
defines { "NDEBUG", "TRACE" }
|
||||||
flags { "Optimize" }
|
flags { "Optimize" }
|
||||||
|
|
||||||
|
|
||||||
-- Project kinds
|
-- Project kinds
|
||||||
-- ConsoleApp
|
-- ConsoleApp
|
||||||
-- Makefile
|
-- Makefile
|
||||||
-- SharedLib
|
-- SharedLib
|
||||||
-- StaticLib
|
-- StaticLib
|
||||||
-- WindowedApp
|
-- WindowedApp
|
||||||
|
|
||||||
project "tests"
|
project "tests"
|
||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
language "C++"
|
language "C++"
|
||||||
targetdir "bin"
|
targetdir "bin"
|
||||||
files { "../src/**.cpp", "main.cpp" }
|
files { "../src/**.cpp", "main.cpp" }
|
||||||
|
|
||||||
includedirs {
|
includedirs {
|
||||||
"../include",
|
"../include",
|
||||||
}
|
".",
|
||||||
|
"igloo"
|
||||||
configuration { "x64", "debug" }
|
}
|
||||||
targetsuffix "x64_d"
|
|
||||||
configuration { "x64", "release" }
|
configuration { "x64", "debug" }
|
||||||
targetsuffix "x64"
|
targetsuffix "x64_d"
|
||||||
|
configuration { "x64", "release" }
|
||||||
configuration "Debug"
|
targetsuffix "x64"
|
||||||
defines { "DEBUG", "USE_CHEATS", "TRACE" }
|
|
||||||
flags { "Symbols" }
|
configuration "Debug"
|
||||||
targetsuffix "_d"
|
defines { "DEBUG", "USE_CHEATS", "TRACE" }
|
||||||
|
flags { "Symbols" }
|
||||||
configuration "Release"
|
targetsuffix "_d"
|
||||||
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
|
|
||||||
|
configuration "Release"
|
||||||
|
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
|
||||||
flags { "Optimize" }
|
flags { "Optimize" }
|
|
@ -1,9 +0,0 @@
|
||||||
#ifndef __VECTOR3TESTS_H__
|
|
||||||
#define __VECTOR3TESTS_H__
|
|
||||||
|
|
||||||
class Vector3Tests // inherit from UnitTest
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif //__VECTOR3TESTS_H__
|
|
Loading…
Add table
Add a link
Reference in a new issue