commit b0278f2755e0c8b49557b4825895f0f4a7fb7f3f Author: Daniel Thorpe Date: Thu Jun 20 13:42:11 2024 +0100 Set up build tools diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..956cdc0 --- /dev/null +++ b/CMakeLists.txt @@ -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) diff --git a/clang-toolchain.cmake b/clang-toolchain.cmake new file mode 100644 index 0000000..cf9e06b --- /dev/null +++ b/clang-toolchain.cmake @@ -0,0 +1,2 @@ +set(CMAKE_C_COMPILER clang) +set(CMAKE_C_FLAGS "-pedantic -Wall -Wextra") diff --git a/main.c b/main.c new file mode 100644 index 0000000..bc9c274 --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include +#include + +int main(int argc, char **argv) +{ + return EXIT_SUCCESS; +}