From 67c8748162a9d45512fd297d6e0bff4c49162fd0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 25 Jul 2019 13:50:39 +0200 Subject: [PATCH] Lagom: Add a tiny test program so we can see that something works. :^) --- Lagom/CMakeLists.txt | 3 +++ Lagom/TestApp.cpp | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 Lagom/TestApp.cpp diff --git a/Lagom/CMakeLists.txt b/Lagom/CMakeLists.txt index 62d0686a2d9..4035bce5af5 100644 --- a/Lagom/CMakeLists.txt +++ b/Lagom/CMakeLists.txt @@ -24,3 +24,6 @@ include_directories (../) include_directories (../Libraries/) add_library(lagom ${SOURCES}) +add_executable(TestApp TestApp.cpp) +target_link_libraries(TestApp lagom) +target_link_libraries(TestApp stdc++) diff --git a/Lagom/TestApp.cpp b/Lagom/TestApp.cpp new file mode 100644 index 00000000000..dbf2c1d79ed --- /dev/null +++ b/Lagom/TestApp.cpp @@ -0,0 +1,15 @@ +#include +#include +#include + +int main(int, char**) +{ + CEventLoop event_loop; + + CTimer timer(100, [&] { + dbg() << "Timer fired, good-bye! :^)"; + event_loop.quit(0); + }); + + return event_loop.exec(); +}