Added flag to work as a library

This commit is contained in:
KiritoDv
2023-09-24 15:59:09 -06:00
parent bc291abe50
commit a4f96f6cab
5 changed files with 21 additions and 4 deletions
+3 -1
View File
@@ -2,6 +2,7 @@
#include "CLI11.hpp"
#include "Companion.h"
#ifdef STANDALONE
Companion* Companion::Instance;
int main(int argc, char *argv[]) {
@@ -19,4 +20,5 @@ int main(int argc, char *argv[]) {
Companion::Instance = new Companion(filename);
Companion::Instance->Init();
return 0;
}
}
#endif