1
0
Fork 0

Added editorconfig, fixed formatting

This commit is contained in:
Reinout Meliesie 2021-02-27 16:11:05 +01:00
parent c4fddcafe4
commit 688b7b6e0a
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
2 changed files with 25 additions and 6 deletions

19
.editorconfig Normal file
View file

@ -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

View file

@ -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})