Set up build tools

This commit is contained in:
Daniel Thorpe 2024-06-20 13:42:11 +01:00
commit b0278f2755
No known key found for this signature in database
4 changed files with 17 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/*

7
CMakeLists.txt Normal file
View File

@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.13)
project(gemhadar LANGUAGES C)
add_executable(gemhadar
"main.c"
)
set_property(TARGET gemhadar PROPERTY C_STANDARD 11)

2
clang-toolchain.cmake Normal file
View File

@ -0,0 +1,2 @@
set(CMAKE_C_COMPILER clang)
set(CMAKE_C_FLAGS "-pedantic -Wall -Wextra")

7
main.c Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
return EXIT_SUCCESS;
}