opengl-tutorials icon indicating copy to clipboard operation
opengl-tutorials copied to clipboard

CMakeLists.txt request

Open mihsamusev opened this issue 4 years ago • 3 comments

Hi, is it possible to include a CMakeLists.txt file for non Visual Studio users?

mihsamusev avatar Aug 21 '21 19:08 mihsamusev

I've never worked with CMake so... no, I don't think I can do that :(

But maybe someone else will do it ¯_(ツ)_/¯

VictorGordan avatar Aug 21 '21 19:08 VictorGordan

I just started with OpenGl, but I do know cmake. So I made a new repository https://GitHub.com/chirag-droid/OpenGl it includes a CMakeLists.txt

chirag-droid avatar Sep 19 '21 06:09 chirag-droid

I have made a fork that uses cmake, but there are a few issues: On Windows the build fails when copying shaders to the build directory and the path contains an '&' symbol. (Tutorial 16-19) On Linux globally declared 'gamma' variable is redeclaring 'gamma' form mathcalls.h. Easiest solution would be to declare gamma inside main or rename gamma. (Tutorial 24-30)

Everything else works fine. (tested only on windows and linux) https://github.com/naszly/opengl-tutorials Should I make a pull request with the current state?

naszly avatar Jun 25 '22 16:06 naszly