Enable cmake for model

This commit is contained in:
manzerbredes 2015-04-29 19:34:01 +02:00
parent 674563203b
commit 9fbd4e0fed
8 changed files with 23 additions and 10 deletions

8
src/Model/CMakeLists.txt Normal file
View file

@ -0,0 +1,8 @@
#Retrieve crypto++ libraries
get_property(SFML_LIBRARIES GLOBAL PROPERTY SFML_LIBRARIES)
#Make CryptClass lib
add_library(Model ./Cell.cpp ./Game.cpp ./Grid.cpp)
#Add crypto++ to CryptClass
target_link_libraries(Model ${SFML_LIBRARIES})

View file

@ -19,9 +19,9 @@ Cell::~Cell()
}
// Description
/*
void Cell::description()
{
return m_value;
}
*/

View file

@ -21,7 +21,7 @@ class Cell
~Cell();
// Describes the cell in a terminal
std::string description();
//std::string description();
};

View file

@ -1,5 +1,6 @@
#include "Grid.h"
#include "Grid.hpp"
/*
Grid::Grid(int size)
{
m_table = std::vector<std::vector<Cell*>>(size);
@ -34,4 +35,4 @@ void Grid::description()
std::cout << std::endl;
}
}
*/

View file

@ -11,7 +11,7 @@
#include <vector>
#include "Cell.hpp"
/*
class Grid
{
private:
@ -22,6 +22,6 @@ class Grid
~Grid();
void description();
};
*/
#endif