From 0acedf8a822c06da8ecf4f4391b3fc7b1c0a1c74 Mon Sep 17 00:00:00 2001 From: MrGeorgen Date: Wed, 28 Oct 2020 19:47:10 +0100 Subject: [PATCH] einfaches build system --- .gitmodules | 3 +++ CMakeLists.txt | 6 ++++++ j1-Passwoerter/CMakeLists.txt | 2 ++ j1-Passwoerter/src/main.c | 4 ++++ lib/acl | 1 + 5 files changed, 16 insertions(+) create mode 100644 .gitmodules create mode 100644 CMakeLists.txt create mode 100644 j1-Passwoerter/CMakeLists.txt create mode 100644 j1-Passwoerter/src/main.c create mode 160000 lib/acl diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cfb9fa6 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/acl"] + path = lib/acl + url = https://git.redstoneunion.de/MrGeorgen/advanced_C_standard_library.git diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..55d83e1 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +project(bwinf C) +cmake_minimum_required(VERSION 3.17) +set( CMAKE_EXPORT_COMPILE_COMMANDS ON ) +set_property(GLOBAL PROPERTY C_STANDARD 99) +add_subdirectory("lib/acl") +add_subdirectory("j1-Passwoerter") diff --git a/j1-Passwoerter/CMakeLists.txt b/j1-Passwoerter/CMakeLists.txt new file mode 100644 index 0000000..3b5c5a5 --- /dev/null +++ b/j1-Passwoerter/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB J1SOURCES "src/*.c") +add_executable(j1 ${J1SOURCES} ${ACLSOURCES}) diff --git a/j1-Passwoerter/src/main.c b/j1-Passwoerter/src/main.c new file mode 100644 index 0000000..e0091b6 --- /dev/null +++ b/j1-Passwoerter/src/main.c @@ -0,0 +1,4 @@ +#include +int main() { + printf("hey"); +} diff --git a/lib/acl b/lib/acl new file mode 160000 index 0000000..285f43f --- /dev/null +++ b/lib/acl @@ -0,0 +1 @@ +Subproject commit 285f43f65a8037471948e83c719edc67046c3244