Remove WIN32 attribute for tests (so we can see colored output in win cmd console).

This commit is contained in:
David Capello 2010-09-30 13:22:10 -03:00
parent d8d1c52e84
commit 9f000741a3
2 changed files with 5 additions and 4 deletions

View File

@ -279,7 +279,7 @@ file(GLOB_RECURSE tests *_unittest.cpp)
foreach(testsourcefile ${tests})
get_filename_component(testname ${testsourcefile} NAME_WE)
add_executable(${testname} WIN32 ${testsourcefile})
add_executable(${testname} ${testsourcefile})
target_link_libraries(${testname} gtest ${all_libs})

View File

@ -28,7 +28,10 @@
#include "gui/jinete.h"
#endif
// Allegro-friendly main() routine
#ifdef main
#undef main
#endif
int main(int argc, char* argv[])
{
int exitcode;
@ -58,6 +61,4 @@ int main(int argc, char* argv[])
return exitcode;
}
END_OF_MAIN();
#endif