Updated readme, and updated main so you don't need to run the test program on the commandline.
This commit is contained in:
parent
db0ac63215
commit
44608cf2c8
5 changed files with 240 additions and 229 deletions
|
@ -5,8 +5,12 @@ C++ GameDev related math helpers. These helpers will be designed for ease of us
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
-----------
|
-----------
|
||||||
Aside from a C++ compiler, there are no external dependencies outside of the stdlib. However, for running unit tests this uses [igloo](https://github.com/joakimkarlsson/igloo), already referenced as an external.
|
Aside from a C++ compiler, there are no external dependencies outside of the stdlib. However, for running unit tests I use [igloo](https://github.com/joakimkarlsson/igloo), which is already referenced, and you'll need premake4.
|
||||||
|
|
||||||
Cloning
|
Cloning
|
||||||
-----------
|
-----------
|
||||||
Since there's an external for testing, don't forget `--recursive`: `git clone --recursive https://github.com/leetNightshade/math.beta.git`.
|
Since there's an external for testing, don't forget `--recursive`: `git clone --recursive https://github.com/leetNightshade/math.beta.git`.
|
||||||
|
|
||||||
|
Testing
|
||||||
|
-----------
|
||||||
|
You'll need premake4. On the commandline `premake4 --help` to see what project types are available for your platform, and pick the project type you want to use. For example, on Windows I'll use `premake4 vs2010`. From there build your project. When it's done building, run the program directly; for convenience you don't need to run it from the commandline.
|
|
@ -1,3 +1,6 @@
|
||||||
|
#include <iostream>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
#include <igloo/igloo_alt.h>
|
#include <igloo/igloo_alt.h>
|
||||||
|
|
||||||
using namespace igloo;
|
using namespace igloo;
|
||||||
|
@ -8,6 +11,10 @@ using namespace igloo;
|
||||||
|
|
||||||
int main( int argc, const char* argv[ ] )
|
int main( int argc, const char* argv[ ] )
|
||||||
{
|
{
|
||||||
|
const int returnValue = TestRunner::RunAllTests( argc, const_cast< char** >( argv ) );
|
||||||
|
|
||||||
return TestRunner::RunAllTests( argc, const_cast< char** >( argv ) );
|
std::cout << std::endl << "Press ENTER to continue" << std::endl;
|
||||||
|
std::cin.ignore( std::numeric_limits< std::streamsize >::max( ), '\n' );
|
||||||
|
|
||||||
|
return returnValue;
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue