From 9b7b9166e53b5b1aee58073e33f90d87e410745f8c046e692a15cef0c6ab4f67 Mon Sep 17 00:00:00 2001 From: Mexpert_PRO Date: Sun, 1 Feb 2026 17:54:32 +0100 Subject: [PATCH] Configure project TSE-RTS --- .vscode/launch.json | 4 +-- CMakeLists.txt | 34 ++++++++++---------- DemoProject/include/globalVars.hpp | 3 -- TSE | 2 +- {DemoProject => TSE-RTS}/Resources/test.png | Bin TSE-RTS/include/globalVars.hpp | 3 ++ {DemoProject => TSE-RTS}/src/main.cpp | 0 7 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 DemoProject/include/globalVars.hpp rename {DemoProject => TSE-RTS}/Resources/test.png (100%) create mode 100644 TSE-RTS/include/globalVars.hpp rename {DemoProject => TSE-RTS}/src/main.cpp (100%) diff --git a/.vscode/launch.json b/.vscode/launch.json index b8c34a0..e9102e0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "cppdbg", "request": "launch", "MIMode": "gdb", - "program": "${workspaceFolder}/bin/DemoProject", + "program": "${workspaceFolder}/bin/TSE-RTS", "preLaunchTask": "build_debug_linux", "args": [], "stopAtEntry": false, @@ -20,7 +20,7 @@ "type": "cppvsdbg", "request": "launch", //"MIMode": "gdb", - "program": "${workspaceFolder}/bin/DemoProject", + "program": "${workspaceFolder}/bin/TSE-RTS", "preLaunchTask": "build_debug_linux", "args": [], "stopAtEntry": false, diff --git a/CMakeLists.txt b/CMakeLists.txt index 9eeb6e9..93c26e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.31) #project name -project(DemoProject) +project(TSE-RTS) #cpp settings find_program(CLANG_C NAMES clang) @@ -33,19 +33,19 @@ add_subdirectory(TSE/TSE_GlfwOpenGlImpl) #source files file(GLOB CPP_SOURCE - "${PROJECT_SOURCE_DIR}/DemoProject/src/*.cpp" - "${PROJECT_SOURCE_DIR}/DemoProject/src/*/*.cpp" - "${PROJECT_SOURCE_DIR}/DemoProject/src/*/*/*.cpp" - "${PROJECT_SOURCE_DIR}/DemoProject/src/*/*/*/*.cpp" - "${PROJECT_SOURCE_DIR}/DemoProject/src/*.c" - "${PROJECT_SOURCE_DIR}/DemoProject/src/*/*.c" - "${PROJECT_SOURCE_DIR}/DemoProject/src/*/*/*.c" - "${PROJECT_SOURCE_DIR}/DemoProject/src/*/*/*/*.c" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*.cpp" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*/*.cpp" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*/*/*.cpp" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*/*/*/*.cpp" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*.c" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*/*.c" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*/*/*.c" + "${PROJECT_SOURCE_DIR}/TSE-RTS/src/*/*/*/*.c" ) #includes -include_directories(${PROJECT_SOURCE_DIR}/DemoProject/src) -include_directories(${PROJECT_SOURCE_DIR}/DemoProject/include) +include_directories(${PROJECT_SOURCE_DIR}/TSE-RTS/src) +include_directories(${PROJECT_SOURCE_DIR}/TSE-RTS/include) include_directories(${PROJECT_SOURCE_DIR}/TSE/TSE_Math/src) include_directories(${PROJECT_SOURCE_DIR}/TSE/TSE_Core/src) include_directories(${PROJECT_SOURCE_DIR}/TSE/TSE_Core/include) @@ -61,7 +61,7 @@ include_directories(${PROJECT_SOURCE_DIR}/TSE/TSE_GlfwOpenGlImpl/src) include_directories(${PROJECT_SOURCE_DIR}/TSE/TSE_GlfwOpenGlImpl/include) #project def -add_executable(DemoProject ${CPP_SOURCE}) +add_executable(TSE-RTS ${CPP_SOURCE}) if (WIN32) if(DEBUG) @@ -90,7 +90,7 @@ else() endif() if (WIN32) - target_link_libraries(DemoProject PUBLIC + target_link_libraries(TSE-RTS PUBLIC TSE_Base TSE_Math TSE_Core @@ -99,7 +99,7 @@ if (WIN32) TSE_Editor ${LIB_SOURCE}) else() - target_link_libraries(DemoProject PUBLIC + target_link_libraries(TSE-RTS PUBLIC TSE_Editor TSE_GlfwOpenGlImpl TSE_GlfwImpl @@ -110,15 +110,15 @@ else() endif() #flags -target_compile_options(DemoProject PRIVATE -march=native) +target_compile_options(TSE-RTS PRIVATE -march=native) set(TARGET_DIR "${PROJECT_SOURCE_DIR}/bin") add_custom_command( - TARGET DemoProject + TARGET TSE-RTS POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory - "${PROJECT_SOURCE_DIR}/DemoProject/Resources" + "${PROJECT_SOURCE_DIR}/TSE-RTS/Resources" "${TARGET_DIR}" COMMENT "📂 Kopiere Resources/ nach bin/ nach Buildabschluss\n" ) \ No newline at end of file diff --git a/DemoProject/include/globalVars.hpp b/DemoProject/include/globalVars.hpp deleted file mode 100644 index 9292525..0000000 --- a/DemoProject/include/globalVars.hpp +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#define PROJECT_NAME "DemoProject" \ No newline at end of file diff --git a/TSE b/TSE index 473ff08..236da30 160000 --- a/TSE +++ b/TSE @@ -1 +1 @@ -Subproject commit 473ff0840dad104c9511f6aff70b449171f8979a19d075968da9f2ce5cb6ef41 +Subproject commit 236da3059ff43f1aff22a61ed827442a366e7529156346af47cafb74aa9545e7 diff --git a/DemoProject/Resources/test.png b/TSE-RTS/Resources/test.png similarity index 100% rename from DemoProject/Resources/test.png rename to TSE-RTS/Resources/test.png diff --git a/TSE-RTS/include/globalVars.hpp b/TSE-RTS/include/globalVars.hpp new file mode 100644 index 0000000..37c4e6d --- /dev/null +++ b/TSE-RTS/include/globalVars.hpp @@ -0,0 +1,3 @@ +#pragma once + +#define PROJECT_NAME "TSE-RTS" \ No newline at end of file diff --git a/DemoProject/src/main.cpp b/TSE-RTS/src/main.cpp similarity index 100% rename from DemoProject/src/main.cpp rename to TSE-RTS/src/main.cpp