Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt #5

Closed
farrell236 opened this issue Feb 14, 2015 · 0 comments
Closed

CMakeLists.txt #5

farrell236 opened this issue Feb 14, 2015 · 0 comments

Comments

@farrell236
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant