mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
Add cmake format (#4618)
* Support CMakeify operation * Run Cmakeify * Update cmakeify.sh Co-authored-by: ebbit1q <ebbit1q@gmail.com>
This commit is contained in:
parent
3e90f109a2
commit
a95b338c80
20 changed files with 1132 additions and 815 deletions
14
cmakeify.sh
Executable file
14
cmakeify.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# go to the project root directory, this file should be located in the project root directory
|
||||
cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with special links etc.
|
||||
|
||||
# CMake-Format
|
||||
cmake_format_cmd="cmake-format"
|
||||
|
||||
if ! hash $cmake_format_cmd 2>/dev/null; then
|
||||
echo "could not find $cmake_format_cmd, skipping" >&2
|
||||
return
|
||||
fi
|
||||
|
||||
$cmake_format_cmd -i cmake/*.cmake */CMakeLists.txt CMakeLists.txt
|
||||
Loading…
Add table
Add a link
Reference in a new issue