commit 469ecfb0997121b852fa6333ded6c1ae855da3af Author: Henry Winkel Date: Tue Dec 20 15:24:07 2022 +0100 initial commit diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..79eeadd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libs/whisper-com"] + path = libs/whisper-com + url = https://dev-gitea.ftewa.ti.unibw-hamburg.de/hwinkel/whisper-com.git \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3b915f4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,70 @@ +cmake_minimum_required (VERSION 3.1 FATAL_ERROR) +project (SimCore VERSION 0.1.0 LANGUAGES CXX C) +set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules) +include(defaultOptions) + + + + +IF(NOT TARGET whisper-com) +add_subdirectory(libs/whisper-com EXCLUDE_FROM_ALL) +ENDIF() + + + +add_library(SimCore STATIC + include/Gateway/Gateway.hpp + src/Gateway/Gateway.cpp + include/Gateway/PduProcessors/EntityStateProcessor.hpp + src/Gateway/PduProcessors/EntityStateProcessor.cpp + + + +) + + +target_link_libraries(Gateway +OpenDIS6 +whisper-com +sfml-network +loguru +) + +target_include_directories(Gateway PUBLIC + $ + $ + src) + + + add_executable(main + + src/main.cpp + + + ) + + + target_link_libraries(main + Gateway + CLI11 + loguru + ) + target_include_directories(main PUBLIC + $ + $ + src) + + +# # +# # Everything TEST related +# # +# option(TEST_WHISPER_COMMUNICATION_LIBRARY "Turn running of application template specific tests off" ON) + +# IF (${TEST_WHISPER_COMMUNICATION_LIBRARY}) + +# add_executable(test_test tests/test_test.cpp) +# target_link_libraries(test_test Catch2::Catch2 whisper-com loguru) +# catch_discover_tests(test_test) + + +# ENDIF() diff --git a/include/SimCore/Entity.hpp b/include/SimCore/Entity.hpp new file mode 100644 index 0000000..27836cc --- /dev/null +++ b/include/SimCore/Entity.hpp @@ -0,0 +1,11 @@ +#pragma once + + + +namespace SimCore { + + class Entity { + + + }; +} \ No newline at end of file diff --git a/include/SimCore/Messages/OwnEntity.hpp b/include/SimCore/Messages/OwnEntity.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/SimCore/Messages/Track.hpp b/include/SimCore/Messages/Track.hpp new file mode 100644 index 0000000..e69de29 diff --git a/src/SimCore/Entity.cpp b/src/SimCore/Entity.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/SimCore/Messages/Track.cpp b/src/SimCore/Messages/Track.cpp new file mode 100644 index 0000000..e69de29