This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 3.17) | |
| project(project) | |
| file(GLOB files "src/*.cpp") | |
| add_executable(binary ${files}) | |
| set(CMAKE_CXX_STANDARD 20) | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ | |
| -Wall \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 4 | |
| charset = utf-8 | |
| trim_trailing_whitespace = false | |
| insert_final_newline = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| COMPILER = g++ | |
| COMPILER_FLAGS = \ | |
| -std=c++17 \ | |
| -Wall \ | |
| -Werror \ | |
| -Wextra \ | |
| -pedantic \ | |
| -Wpedantic \ | |
| -Wold-style-cast \ | |
| -finline-functions \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| COMPILER = gcc | |
| COMPILER_FLAGS = \ | |
| -xc \ | |
| -std=c11 \ | |
| -Wextra \ | |
| -Wall \ | |
| -Werror \ | |
| -Wfloat-equal \ | |
| -Wundef \ | |
| -Wshadow \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| sizes=(16 32 64 128 256 512 1024 2048 4096 8192) | |
| function export-png { | |
| sourceFile=$1 | |
| size=$2 | |
| rsvg-convert -f png -o "$size.png" -w $size -h $size --no-keep-image-data "$sourceFile" | |
| } |