Lagom: Add a tiny test program so we can see that something works. :^)

This commit is contained in:
Andreas Kling 2019-07-25 13:50:39 +02:00
parent e4c9235c91
commit 67c8748162
Notes: sideshowbarker 2024-07-19 13:03:46 +09:00
2 changed files with 18 additions and 0 deletions

View file

@ -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++)

15
Lagom/TestApp.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <LibCore/CEventLoop.h>
#include <LibCore/CTimer.h>
#include <stdio.h>
int main(int, char**)
{
CEventLoop event_loop;
CTimer timer(100, [&] {
dbg() << "Timer fired, good-bye! :^)";
event_loop.quit(0);
});
return event_loop.exec();
}