summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-01 22:48:51 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-01 22:48:51 +0200
commit1af58bb8886673ac115f019094853fa763e79187 (patch)
treec2ab030898e74288f82c557287272546a990e932 /CMakeLists.txt
Initial commit.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..a1ca449
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+
+project("relabsd")
+
+include(FindPkgConfig)
+
+add_subdirectory(src)
+
+# ${SRC_FILES} is recursively defined in the subdirectories.
+# Each subdirectory only adds the source files that are present at its level.
+
+add_executable(relabsd ${SRC_FILES})
+
+pkg_search_module(LIBEVDEV REQUIRED libevdev)
+include_directories(${LIBEVDEV_INCLUDE_DIRS})
+target_link_libraries(relabsd ${LIBEVDEV_LIBRARIES})