HPCE / hpce-2014-cw4

3 stars 5 forks source link

CMakeLists.txt #5

Closed farrell236 closed 9 years ago

farrell236 commented 9 years ago

I have written a CMakeLists.txt for those who are interested in one.

CMake generates native makefiles and IDE workspaces that can be used in an environment of your choice. You can then build and debug within the IDE.

To use, put the CMakeLists.txt file in the root of the hpce-2014-cw4 folder, then use CMake to create a project file for your desired platform.

Ping me a message if you need help.

https://dl.dropboxusercontent.com/u/50827889/CMakeLists.txt

Edit: For Windows users, you might see an error when building.

Error 18 error C2039: 'min' : is not a member of 'std' C:\Users\farrell\Desktop\hpce-2014-cw4-master\src\heat.cpp 367 1 render_world Error 19 error C2039: 'max' : is not a member of 'std' C:\Users\farrell\Desktop\hpce-2014-cw4-master\src\heat.cpp 367 1 render_world Error 22 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) C:\Users\farrell\Desktop\hpce-2014-cw4-master\src\render_world.cpp 17 1 render_world

To fix these, they require:

include < algorithm >

include < string >

to be added (I find the optimum place is in heat.hpp)