initial commit

This commit is contained in:
Henry Winkel
2022-12-20 15:24:07 +01:00
commit 469ecfb099
7 changed files with 84 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@@ -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

70
CMakeLists.txt Normal file
View File

@@ -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
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
src)
add_executable(main
src/main.cpp
)
target_link_libraries(main
Gateway
CLI11
loguru
)
target_include_directories(main PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
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()

View File

@@ -0,0 +1,11 @@
#pragma once
namespace SimCore {
class Entity {
};
}

View File

View File

0
src/SimCore/Entity.cpp Normal file
View File

View File