generated from sigonasr2/CPlusPlusProjectTemplate
parent
7cda0fe1c7
commit
5827bcb8a6
@ -1,7 +1,15 @@ |
||||
#Compiles the entire program then runs it, producing an executable. |
||||
#Compiles the entire program then runs it, producing an executable. If the "test" argument is included, will try and run tests too (in the test folder) |
||||
#C++ |
||||
printf "Running program...\n\n\n" |
||||
if g++ $(find . -type f -name "*.cpp") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then |
||||
if [ "$1" = "test" ] |
||||
then |
||||
printf "Running tests...\n" |
||||
if g++ $(find . -type f -name "*.cpp") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then |
||||
./${PROJECT_NAME} "$@" |
||||
fi |
||||
else |
||||
if g++ $(find . -type f -name "*.cpp" -not -path "./test/*") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then |
||||
./${PROJECT_NAME} "$@" |
||||
fi |
||||
fi |
||||
printf "\n\n" |
||||
|
Binary file not shown.
@ -0,0 +1,30 @@ |
||||
#include "../entity.h" |
||||
#include "../item.h" |
||||
#include "../layers.h" |
||||
#include <string> |
||||
#define OLC_PGE_APPLICATION |
||||
#include "../pixelGameEngine.h" |
||||
#define OLC_PGEX_SPLASHSCREEN |
||||
#include "../splash.h" |
||||
#define OLC_SOUNDWAVE |
||||
#include "../defines.h" |
||||
#include "../soundwaveEngine.h" |
||||
#include "../tiles.h" |
||||
#include "../references.h" |
||||
#include "../states.h" |
||||
#include "../flags.h" |
||||
#include <assert.h> |
||||
#include "../cutscene.h" |
||||
#include "../encounters.h" |
||||
#include "../particle.h" |
||||
#include "../effect.h" |
||||
#include "../battleproperty.h" |
||||
#include "test.h" |
||||
|
||||
int main() { |
||||
SeasonI demo; |
||||
if (demo.Construct(WIDTH, HEIGHT, 4, 4)) |
||||
demo.Start(); |
||||
|
||||
return 0; |
||||
} |
@ -0,0 +1 @@ |
||||
#define TEST_SUITE |
Loading…
Reference in new issue