From 8ecd82eb4e4264339a6e10c3ba4205bd6f68ae08 Mon Sep 17 00:00:00 2001 From: Andrii Solianyk Date: Fri, 15 Nov 2024 09:49:52 +0100 Subject: [PATCH] Fixed template --- CMakeLists.txt | 6 +++++- headers/Actor.h | 9 +++++---- sources/Actor.cpp | 2 +- sources/Plansza.cpp | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c065985..83ddf92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,11 @@ project(LotoStatek) set(CMAKE_CXX_STANDARD 17) -add_executable(LotoStatek main.cpp) +add_executable(LotoStatek main.cpp + headers/Actor.h + headers/Plansza.h + sources/Actor.cpp + sources/Plansza.cpp) if(WIN32) set(SFML_ROOT "${CMAKE_SOURCE_DIR}/SFML") diff --git a/headers/Actor.h b/headers/Actor.h index d687174..f235735 100644 --- a/headers/Actor.h +++ b/headers/Actor.h @@ -1,8 +1,9 @@ -#ifndef OBJECT_MOVING_H -#define OBJECT_MOVING_H +#ifndef ACTOR_H +#define ACTOR_H class Actor { -} -#endif //OBJECT_MOVING_H +}; + +#endif //ACTOR_H diff --git a/sources/Actor.cpp b/sources/Actor.cpp index 6e3509c..e84d3f3 100644 --- a/sources/Actor.cpp +++ b/sources/Actor.cpp @@ -1 +1 @@ -#include "object_moving.h" \ No newline at end of file +#include "../headers/actor.h" \ No newline at end of file diff --git a/sources/Plansza.cpp b/sources/Plansza.cpp index 7423a7f..d9794c6 100644 --- a/sources/Plansza.cpp +++ b/sources/Plansza.cpp @@ -1 +1 @@ -#include "Plansza.h" +#include "../headers/Plansza.h"