From 05a272c0ff1a10830bdbdbfbd8344b7a1db65667 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 2 Sep 2022 08:39:20 +0200 Subject: [PATCH] init fsfw-from-zero --- .gitignore | 2 ++ .gitmodules | 3 +++ CMakeLists.txt | 15 +++++++++++++++ fsfw | 1 + main.cpp | 7 +++++++ 5 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 CMakeLists.txt create mode 160000 fsfw create mode 100644 main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a89d918 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/build* +/cmake-build* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4b96622 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "fsfw"] + path = fsfw + url = https://egit.irs.uni-stuttgart.de/fsfw/fsfw.git diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..dc98952 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.22.0) +# We can version our project using CMake +project(foo VERSION 0.1.0) + +# Sometimes, a C++ project might require a certain C++ standard to build. +# The following directives make sure that the compiler supports the required +# standard +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +# This adds a library target called "foo" +add_executable(fsfw-from-zero) +target_sources(fsfw-from-zero PRIVATE main.cpp) + +# target_link_libraries(fsfw-from-zero PRIVATE fsfw) diff --git a/fsfw b/fsfw new file mode 160000 index 0000000..eb8e236 --- /dev/null +++ b/fsfw @@ -0,0 +1 @@ +Subproject commit eb8e236cd4f5aec692aba89eb004a8e3dd3d53fb diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..a79aad7 --- /dev/null +++ b/main.cpp @@ -0,0 +1,7 @@ +#include + +using namespace std; + +int main() { + cout << "hello world!" << endl; +} \ No newline at end of file