Skip to content

Commit

Permalink
Lagom: Add a tiny test program so we can see that something works. :^)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Jul 25, 2019
1 parent e4c9235 commit 67c8748
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lagom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 15 additions & 0 deletions Lagom/TestApp.cpp
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit 67c8748

Please sign in to comment.