Verified Commit f7848295 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Add qmake file, add headers

parent 924b51f4
#include "autocell.h"
#include "reseau_cellule_etats.h"
#include "Reseau_Cellule_Etat/reseau_cellule_etats.h"
#include <QApplication>
#include <QPushButton>
......
#ifndef AUTOCELL_H
#define AUTOCELL_H
#include "reseau_cellule_etats.h"
#include "Reseau_Cellule_Etat/reseau_cellule_etats.h"
#include <QApplication>
#include <QPushButton>
......
CC = g++
FLAGS = -O3 -Wall -Wextra -Werror -pedantic-errors -std=c++17
OBJS = main.o
PROJNAME = projetLO21
$(PROJNAME): $(OBJS)
$(CC) $(FLAGS) -o $(PROJNAME) $^
%.o: %.cpp
$(CC) $(FLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(PROJNAME)
......@@ -11,6 +11,8 @@
#include <stdio.h>
#include <iostream>
#include "Reseau_Cellule_Etat/reseau_cellule_etats.h"
using namespace std;
......@@ -29,7 +31,7 @@ public:
Voisinage();
~Voisinage();
Cellule* getCelluleCentre()const {return celluleCentre;}
const Cellule* getCelluleCentre()const {return celluleCentre;}
void setr(unsigned int rayon);
unsigned int getr() const {return r;}
VoisinageIterator *creerIterator()const{
......
QT += widgets
SOURCES += GUI/autocell.cpp
SOURCES += Voisinage/voisinage.cpp
SOURCES += Reseau_Cellule_Etat/reseau_cellule_etats.cpp
SOURCES += Reseau_Cellule_Etat/main.cpp
SOURCES += Fonction_Regle/Fonction.cpp
SOURCES += Automate/Automate.cpp
HEADERS += ./GUI/autocell.h
HEADERS += ./Cellulut/Cellulut/fonction.h
HEADERS += ./Voisinage/voisinage.hpp
HEADERS += ./Reseau_Cellule_Etat/reseau_cellule_etats.h
HEADERS += ./Fonction_Regle/Fonction.h
HEADERS += ./Automate/Automate.h
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment