Browse Source

add cmake files to git ignore & change directory structure to module based approach

master
leo 3 years ago
parent
commit
b1fdcec0c8
  1. 6
      .gitignore
  2. 8
      CMakeLists.txt
  3. 2
      src/InputManager/InputManager.cpp
  4. 4
      src/InputManager/InputManager.h
  5. 2
      src/StorageEditor/StorageEditor.cpp
  6. 4
      src/StorageEditor/StorageEditor.h
  7. 2
      src/Ware/Ware.cpp
  8. 0
      src/Ware/Ware.h
  9. 2
      src/WarenStorage/WarenStorage.cpp
  10. 2
      src/WarenStorage/WarenStorage.h
  11. 4
      src/main.cpp
  12. 0
      src/pch.h

6
.gitignore

@ -1 +1,7 @@
.vimspector.json .vimspector.json
CMakeFiles
CMakeCache.txt
cmake_install.cmake
CMakeLists.txt
kaufland
Makefile

8
CMakeLists.txt

@ -2,10 +2,10 @@ project(kaufland)
set (CMAKE_CXX_STANDARD 14) set (CMAKE_CXX_STANDARD 14)
set(SOURCES set(SOURCES
src/source-files/Ware.cpp
src/source-files/WarenStorage.cpp
src/source-files/StorageEditor.cpp
src/source-files/InputManager.cpp
src/Ware/Ware.cpp
src/WarenStorage/WarenStorage.cpp
src/StorageEditor/StorageEditor.cpp
src/InputManager/InputManager.cpp
) )
set(COMBINED_SOURCES ${SOURCES} src/main.cpp) set(COMBINED_SOURCES ${SOURCES} src/main.cpp)

2
src/source-files/InputManager.cpp → src/InputManager/InputManager.cpp

@ -1,4 +1,4 @@
#include "../header-files/InputManager.h"
#include "InputManager.h"
#include <exception> #include <exception>
#include <sstream> #include <sstream>

4
src/header-files/InputManager.h → src/InputManager/InputManager.h

@ -1,5 +1,5 @@
#include "pch.h"
#include "StorageEditor.h"
#include "../pch.h"
#include "../StorageEditor/StorageEditor.h"
class InputManager { class InputManager {

2
src/source-files/StorageEditor.cpp → src/StorageEditor/StorageEditor.cpp

@ -1,4 +1,4 @@
#include "../header-files/StorageEditor.h"
#include "StorageEditor.h"
StorageEditor::StorageEditor() { } StorageEditor::StorageEditor() { }

4
src/header-files/StorageEditor.h → src/StorageEditor/StorageEditor.h

@ -1,5 +1,5 @@
#include "pch.h"
#include "data-classes/WarenStorage.h"
#include "../pch.h"
#include "../WarenStorage/WarenStorage.h"
class StorageEditor { class StorageEditor {
private: private:

2
src/source-files/Ware.cpp → src/Ware/Ware.cpp

@ -1,4 +1,4 @@
#include "../header-files/data-classes/Ware.h"
#include "Ware.h"
Ware::Ware(){ ++count; } Ware::Ware(){ ++count; }
Ware::~Ware() { --count; } Ware::~Ware() { --count; }

0
src/header-files/data-classes/Ware.h → src/Ware/Ware.h

2
src/source-files/WarenStorage.cpp → src/WarenStorage/WarenStorage.cpp

@ -1,4 +1,4 @@
#include "../header-files/data-classes/WarenStorage.h"
#include "WarenStorage.h"
WarenStorage::WarenStorage() { } WarenStorage::WarenStorage() { }

2
src/header-files/data-classes/WarenStorage.h → src/WarenStorage/WarenStorage.h

@ -1,5 +1,5 @@
#include "../pch.h" #include "../pch.h"
#include "Ware.h"
#include "../Ware/Ware.h"
class WarenStorage { class WarenStorage {
public: public:

4
src/main.cpp

@ -1,5 +1,5 @@
#include "header-files/pch.h"
#include "header-files/InputManager.h"
#include "pch.h"
#include "InputManager/InputManager.h"
int Ware::count; int Ware::count;
int main () { int main () {

0
src/header-files/pch.h → src/pch.h

Loading…
Cancel
Save