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. --- gui/init.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gui/init.hpp (limited to 'gui/init.hpp') diff --git a/gui/init.hpp b/gui/init.hpp new file mode 100644 index 00000000..d437b084 --- /dev/null +++ b/gui/init.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include "export.hpp" + +#include +#include + +int OTR_GUI_EXPORT otr_main(int argc, char** argv, std::function make_main_window); + +template +auto run_application(int argc, char** argv, F&& fun) +{ + return otr_main(argc, argv, fun); +} -- cgit v1.2.3