diff --git a/.cmake-format.yaml b/.cmake-format.yaml new file mode 100644 index 0000000..8606e38 --- /dev/null +++ b/.cmake-format.yaml @@ -0,0 +1,7 @@ +format: + line_width: 100 + tab_size: 4 + use_tabchars: false + max_subgroups_hwrap: 3 + max_pargs_hwrap: 3 + dangle_parens: true diff --git a/.cmakelintrc b/.cmakelintrc new file mode 100644 index 0000000..187d482 --- /dev/null +++ b/.cmakelintrc @@ -0,0 +1 @@ +filter=-linelength,-readability/wonkeycase,-syntax diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d79396..6168952 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,9 @@ endforeach() add_custom_target( copy-compile-commands ALL - ${CMAKE_COMMAND} -E copy_if_different + ${CMAKE_COMMAND} + -E + copy_if_different ${CMAKE_BINARY_DIR}/compile_commands.json ${CMAKE_CURRENT_LIST_DIR} )