Lagom: Add a tiny test program so we can see that something works. :^)
This commit is contained in:
parent
e4c9235c91
commit
67c8748162
Notes:
sideshowbarker
2024-07-19 13:03:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/67c8748162a
2 changed files with 18 additions and 0 deletions
|
@ -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
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
Reference in a new issue