mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:07:45 +00:00
Lagom: Add a tiny test program so we can see that something works. :^)
This commit is contained in:
parent
e4c9235c91
commit
67c8748162
2 changed files with 18 additions and 0 deletions
|
@ -24,3 +24,6 @@ include_directories (../)
|
||||||
include_directories (../Libraries/)
|
include_directories (../Libraries/)
|
||||||
add_library(lagom ${SOURCES})
|
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
15
Lagom/TestApp.cpp
Normal 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();
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue