Installing deps on Ubuntu

Hi @dougbinks,

That worked just fine. I also worked out where at least some of my link errors were coming from - it helps if you install OpenGL!

As an exercise, I replaced main.cpp with simple.c (the example I was originally trying to build) and made the following changes to CMakeLists.txt:

#--------------------------------------------------------------------
# Add deps
#--------------------------------------------------------------------
include_directories( "glfw/deps" )

set(GLAD_GL "${GLFW_SOURCE_DIR}/deps/glad/gl.h"
            "${GLFW_SOURCE_DIR}/deps/glad_gl.c")
set(GETOPT "${GLFW_SOURCE_DIR}/deps/getopt.h"
            "${GLFW_SOURCE_DIR}/deps/getopt.c")
set(TINYCTHREAD "${GLFW_SOURCE_DIR}/deps/tinycthread.h"
            "${GLFW_SOURCE_DIR}/deps/tinycthread.c")
#--------------------------------------------------------------------
# End deps
#--------------------------------------------------------------------

set( GLFW-CMAKE-STARTER-SRC
     simple.c
     )
 
#--------------------------------------------------------------------
# Add glad
#--------------------------------------------------------------------
add_executable( GLFW-CMake-starter ${GLFW-CMAKE-STARTER-SRC} ${GLAD_GL})

And that worked too. So now I just have to work out how :smiley: