Add context creation helper function

This commit is contained in:
2018-09-21 13:04:19 +02:00
parent 2d1c914ca1
commit 547d9ccaa2
2 changed files with 70 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
find_package(OpenHMD REQUIRED)
add_executable(openglexample gl.c gl.h main.c vr_context.c vr_context.h)
add_executable(openglexample gl.c gl.h main.c vr_context.c vr_context.h context.inl)
target_include_directories(openglexample PRIVATE ${OPENGL_INCLUDE_DIRS})
target_link_libraries(openglexample PRIVATE ${OPENGL_LIBRARIES})
target_link_libraries(openglexample PRIVATE m)