summaryrefslogtreecommitdiffhomepage
path: root/trackmouse/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-28 13:40:33 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-28 13:44:59 +0100
commit47d4b25bd0583b1fd65ae885950efd34c9df256b (patch)
treef3a155717092c436e9211e1dc244edc9c9d62fa9 /trackmouse/main.cpp
parent79d56147198dc873e30ae0ca8d554d37106db56f (diff)
cmake: move around variant directories
Diffstat (limited to 'trackmouse/main.cpp')
-rw-r--r--trackmouse/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/trackmouse/main.cpp b/trackmouse/main.cpp
new file mode 100644
index 00000000..2313e1ac
--- /dev/null
+++ b/trackmouse/main.cpp
@@ -0,0 +1,18 @@
+#include "gui/init.hpp"
+#include "window.hpp"
+
+#if defined _WIN32
+# include <windows.h>
+#endif
+
+int main(int argc, char** argv)
+{
+ return run_application(argc, argv, []() { return new main_window; });
+}
+
+#if defined _MSC_VER
+int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int /* nCmdShow */)
+{
+ return main(__argc, __argv);
+}
+#endif