Hopson97 / MineCraft-One-Week-Challenge

I challenged myself to see if I could create a voxel game (Minecraft-like) in just one week using C++ and OpenGL, and here is the result
https://www.youtube.com/watch?v=Xq3isov6mZ8
MIT License
2.65k stars 379 forks source link

cmake generated cmake_install.cmake file. What's next? #69

Closed jakesee closed 7 years ago

jakesee commented 7 years ago

I am not familiar with cmake, can you help me here please?

I used cmake and successfully generated in my specified build directory, a cmake_install.cmake file and a bunch of other visual studio project files. What's next? How do I build the .exe file? There is a CMAKE_INSTALL_PREFIX path but no folder/files is created at that location. I also can't find any flags that instruct cmake to create the exe file.

Thanks.

jakesee commented 7 years ago

OK, I have managed to build and run with Visual Studio, without cmake. I believe the current version on master branch is broken, I had to fix one function to make it compile

void ProcSkyShader::loadViewMatrix(const glm::mat4& viewMatrix)
{
    glm::mat4 _viewMatrix = viewMatrix; // make a copy
    _viewMatrix[3][0] = 0;
    _viewMatrix[3][1] = 0;
    _viewMatrix[3][2] = 0;
    Shader::loadMatrix4(m_locationView, _viewMatrix);
}