diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-28 13:40:33 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-28 13:44:59 +0100 |
commit | 47d4b25bd0583b1fd65ae885950efd34c9df256b (patch) | |
tree | f3a155717092c436e9211e1dc244edc9c9d62fa9 /opentrack/main.cpp | |
parent | 79d56147198dc873e30ae0ca8d554d37106db56f (diff) |
cmake: move around variant directories
Diffstat (limited to 'opentrack/main.cpp')
-rw-r--r-- | opentrack/main.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/opentrack/main.cpp b/opentrack/main.cpp new file mode 100644 index 00000000..2c1dc607 --- /dev/null +++ b/opentrack/main.cpp @@ -0,0 +1,23 @@ +#include "gui/init.hpp" +#include "main-window.hpp" + +#if defined _WIN32 +# include <windows.h> +#endif + +#ifdef __clang__ +# pragma GCC diagnostic ignored "-Wmain" +#endif + +int main(int argc, char** argv) +{ + return run_application(argc, argv, [] { return std::make_unique<main_window>(); }); +} + +#if defined _MSC_VER + +int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int /* nCmdShow */) +{ + return main(__argc, __argv); +} +#endif |