From 0c163993c0610dc92eba767f3e46bc6433cbaba0 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 24 Feb 2019 12:23:07 +1100 Subject: [PATCH] build: wrangling move to cxx --- .gitmodules | 6 ++++++ CMakeLists.txt | 5 +++++ cruft/util | 1 + relay.cpp | 15 +++++++++++++++ 4 files changed, 27 insertions(+) create mode 160000 cruft/util create mode 100644 relay.cpp diff --git a/.gitmodules b/.gitmodules index 2c9dc6b..47a1f94 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,9 @@ [submodule "cmake"] path = cmake url = git://git.nerdcruft.net/cmake +[submodule "cruft/util"] + path = cruft/util + url = git://git.nerdcruft.net/libcruft-util.git +[submodule "cruft/evdev"] + path = cruft/evdev + url = git://git.nerdcruft.net/libcruft-evdev.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 45bca33..cfdb1a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,11 @@ project(quimby list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) include (nc) +add_subdirectory(cruft/util) +add_subdirectory(cruft/evdev) + +add_executable(relay relay.cpp) + install( FILES systemd/system/quimby.service diff --git a/cruft/util b/cruft/util new file mode 160000 index 0000000..ee96cbb --- /dev/null +++ b/cruft/util @@ -0,0 +1 @@ +Subproject commit ee96cbb5daa745d0cae642ed36a913a14f12dee3 diff --git a/relay.cpp b/relay.cpp new file mode 100644 index 0000000..b53a5cc --- /dev/null +++ b/relay.cpp @@ -0,0 +1,15 @@ + + + +struct input_event { + struct timeval time; + unsigned short type; + unsigned short code; + unsigned int value; +}; + + +int main () +{ + +} \ No newline at end of file