Configure project TSE-RTS
This commit is contained in:
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
@@ -1,3 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define PROJECT_NAME "DemoProject"
|
||||
2
TSE
2
TSE
Submodule TSE updated: 473ff0840d...236da3059f
|
Before Width: | Height: | Size: 608 B After Width: | Height: | Size: 608 B |
3
TSE-RTS/include/globalVars.hpp
Normal file
3
TSE-RTS/include/globalVars.hpp
Normal file
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define PROJECT_NAME "TSE-RTS"
|
||||
Reference in New Issue
Block a user