From 53e8b2d41988be69deb800e1ef3cbcfc699a3076 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Jan 2018 07:42:29 +0100 Subject: cmake, main: work toward introducing alternative UI We're going to base opentrack derivatives on the same branch. Previously merges were a living hell. Modularizing the UI code and having continuously-built executables will do a lot. First opentrack variant in progress is a TrackHat device for mouse and scrolling control for people with spine and hand/arm disabilities. --- variant/default/main.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 variant/default/main.cpp (limited to 'variant/default/main.cpp') diff --git a/variant/default/main.cpp b/variant/default/main.cpp new file mode 100644 index 00000000..80f7e495 --- /dev/null +++ b/variant/default/main.cpp @@ -0,0 +1,20 @@ +#include "gui/init.hpp" +#include "gui/main-window.hpp" + +#if defined _WIN32 +# include +#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 + + -- cgit v1.2.3