Update openglexample

This commit is contained in:
2018-09-20 19:57:49 +02:00
parent 5ca8a6311f
commit 2d1c914ca1
6 changed files with 593 additions and 226 deletions

View File

@@ -1,13 +1,13 @@
project (openglexample C)
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
find_package(OpenHMD REQUIRED)
add_executable(openglexample gl.c gl.h main.c)
add_executable(openglexample gl.c gl.h main.c vr_context.c vr_context.h)
target_include_directories(openglexample PRIVATE ${OPENGL_INCLUDE_DIRS})
target_link_libraries(openglexample PRIVATE ${OPENGL_LIBRARIES})
target_link_libraries(openglexample PRIVATE m)
target_link_libraries(openglexample PRIVATE openhmd)
target_link_libraries(openglexample PRIVATE lvrc)
target_include_directories(openglexample PRIVATE "/usr/include/drm")