2021-10-16 17:07:55 +00:00
|
|
|
#include "esmloader/settings.hpp"
|
|
|
|
|
2012-08-19 19:23:46 +00:00
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
2021-10-16 17:07:55 +00:00
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
2019-01-20 13:36:48 +00:00
|
|
|
#ifdef WIN32
|
|
|
|
//we cannot use GTEST_API_ before main if we're building standalone exe application,
|
|
|
|
//and we're linking GoogleTest / GoogleMock as DLLs and not linking gtest_main / gmock_main
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
#else
|
2015-01-09 19:48:36 +00:00
|
|
|
GTEST_API_ int main(int argc, char **argv) {
|
2019-01-20 13:36:48 +00:00
|
|
|
#endif
|
2021-10-16 17:07:55 +00:00
|
|
|
EsmLoaderTests::Settings::impl().mBasePath = boost::filesystem::path(argv[0]).parent_path();
|
2015-01-09 19:48:36 +00:00
|
|
|
testing::InitGoogleTest(&argc, argv);
|
|
|
|
return RUN_ALL_TESTS();
|
2013-08-30 19:51:23 +00:00
|
|
|
}
|