Show version on run

This commit is contained in:
Deukhoofd committed 2021-09-07 19:13:10 +02:00
1 parent f091ff3254
commit 7e1597531d
2 files changed
+5

No files matched your search

+3
View File
@@ -39,3 +39,6 @@ if (WINDOWS)
set_target_properties(PokemonScriptTester PROPERTIES SUFFIX ".exe") set_target_properties(PokemonScriptTester PROPERTIES SUFFIX ".exe")
endif(SHARED) endif(SHARED)
endif (WINDOWS) endif (WINDOWS)
INCLUDE(extern/gitversion/cmake.cmake)
TARGET_GIT_VERSION_INIT(PokemonScriptTester)
+2
View File
@@ -9,8 +9,10 @@
#include "Tester/AngelScript/MiscMockFunctions.hpp" #include "Tester/AngelScript/MiscMockFunctions.hpp"
#include "Tester/AngelScript/TestFunctions.hpp" #include "Tester/AngelScript/TestFunctions.hpp"
#include "Tester/TestRunner.hpp" #include "Tester/TestRunner.hpp"
#include <gitversion/version.h>
int main(int argc, char** argv) { int main(int argc, char** argv) {
std::cout << "PokemonScript Tester version: " << version::VERSION_STRING << std::endl;
args::ArgumentParser parser("PkmnLib Script Tester.", ""); args::ArgumentParser parser("PkmnLib Script Tester.", "");
args::HelpFlag help(parser, "help", "Display this help menu", {'h', "help"}); args::HelpFlag help(parser, "help", "Display this help menu", {'h', "help"});