From 688b7b6e0abf65422ece01ac1542f5913ee53eae Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Sat, 27 Feb 2021 16:11:05 +0100 Subject: [PATCH] Added editorconfig, fixed formatting --- .editorconfig | 19 +++++++++++++++++++ CMakeLists.txt | 12 ++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ebee76b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_style = tab +insert_final_newline = true +trim_trailing_whitespace = true + +# Ignore external dependencies +[/cmake/**] +charset = unset +end_of_line = unset +indent_size = unset +indent_style = unset +insert_final_newline = unset +max_line_length = unset +tab_width = unset +trim_trailing_whitespace = unset diff --git a/CMakeLists.txt b/CMakeLists.txt index d78d717..85b5fe7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,15 +8,15 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake-modules") add_executable(evdev_actions main.c) find_package(Libinput REQUIRED) -if(NOT ${Libinput_FOUND}) - message(FATAL_ERROR "libinput not found") -endif() +if (NOT ${Libinput_FOUND}) + message(FATAL_ERROR "libinput not found") +endif () target_include_directories(evdev_actions PUBLIC ${Libinput_INCLUDE_DIRS}) target_link_libraries(evdev_actions ${Libinput_LIBRARIES}) find_package(udev REQUIRED) -if(NOT ${UDEV_FOUND}) - message(FATAL_ERROR "libudev not found") -endif() +if (NOT ${UDEV_FOUND}) + message(FATAL_ERROR "libudev not found") +endif () target_include_directories(evdev_actions PUBLIC ${UDEV_INCLUDE_DIRS}) target_link_libraries(evdev_actions ${UDEV_LIBRARIES})