From 1af58bb8886673ac115f019094853fa763e79187 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 1 Sep 2015 22:48:51 +0200 Subject: Initial commit. --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') 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}) -- cgit v1.2.3-70-g09d2