diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ae57b9..256c42d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,14 +18,11 @@ include(CheckCSourceCompiles) find_package(SFML REQUIRED) include_directories(sfml::sfml) -# define src/headers files -FILE(GLOB AST_SCRS ./*.cpp) -FILE(GLOB AST_HRDS ./*.h) -SOURCE_GROUP("Source Files" FILES ${AST_SCRS}) -SOURCE_GROUP("Header Files" FILES ${AST_HRDS}) +# define src/headers files groups +include(srcs.list) # targets declarations -add_executable(${PROJECT_NAME} ${AST_SCRS} ${AST_HRDS}) +add_executable(${PROJECT_NAME} ${MAIN_SCRS} ${UTILS_SCRS} ${MISC_SCRS} ${GAME_SCRS} ${GRAPHS_SCRS} ${SOUNDS_SCRS}) set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17) set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}-v${PROJECT_VERSION}) if(MSVC) diff --git a/Engine/Graphics/3DGraphics.cpp b/Engine/Graphics/3DGraphics.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Graphics/Camera.cpp b/Engine/Graphics/Camera.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Graphics/UI.cpp b/Engine/Graphics/UI.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Misc/Console.cpp b/Engine/Misc/Console.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Misc/Console.hpp b/Engine/Misc/Console.hpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Misc/Logger.cpp b/Engine/Misc/Logger.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Misc/Logger.hpp b/Engine/Misc/Logger.hpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Utils/3DMaths.cpp b/Engine/Utils/3DMaths.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/Utils/3DMaths.hpp b/Engine/Utils/3DMaths.hpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/World/Arena.cpp b/Engine/World/Arena.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/World/Player.cpp b/Engine/World/Player.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Engine/World/Tank.cpp b/Engine/World/Tank.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Game.cpp b/Game.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Game.hpp b/Game.hpp new file mode 100644 index 0000000..e69de29 diff --git a/srcs.list b/srcs.list new file mode 100644 index 0000000..5e17db7 --- /dev/null +++ b/srcs.list @@ -0,0 +1,34 @@ +set(MAIN_SCRS +ProtoTank.cpp +Game.cpp +Game.hpp +) +set(UTILS_SCRS +Engine/Utils/3DMaths.cpp +Engine/Utils/3DMaths.hpp +) +set(MISC_SCRS +Engine/Misc/Console.cpp +Engine/Misc/Console.hpp +Engine/Misc/Logger.cpp +Engine/Misc/Logger.hpp +) +set(GAME_SCRS +Engine/World/Arena.cpp +Engine/World/Player.cpp +Engine/World/Tank.cpp +) +set(GRAPHS_SCRS +Engine/Graphics/3DGraphics.cpp +Engine/Graphics/Camera.cpp +Engine/Graphics/UI.cpp +) +set(SOUNDS_SCRS + +) +source_group("Main" FILES ${MAIN_SCRS}) +source_group("Utilities" FILES ${UTILS_SCRS}) +source_group("Miscellaneous" FILES ${MISC_SCRS}) +source_group("Game" FILES ${GAME_SCRS}) +source_group("Graphics" FILES ${GRAPHS_SCRS}) +source_group("Sounds" FILES ${SOUNDS_SCRS}) \ No newline at end of file