opengl-tutorials / ogl

http://www.opengl-tutorial.org
2.71k stars 926 forks source link

Adding ogl to project using cmake. #53

Open MaxBazik opened 7 years ago

MaxBazik commented 7 years ago

HI, I found that when I added ogl to my project I had to make a minor change to cmake. I thought I would share it so hopefully the source can be updated. in CMakeLists,txt line 25:

list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/external/rpavlik-cmake-modules-fe2273")

to

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/external/rpavlik-cmake-modules-fe2273")