Added editorconfig, fixed formatting
This commit is contained in:
parent
c4fddcafe4
commit
688b7b6e0a
2 changed files with 25 additions and 6 deletions
19
.editorconfig
Normal file
19
.editorconfig
Normal 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
|
|
@ -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})
|
||||
|
|
Loading…
Add table
Reference in a new issue