Files
Linux-VR-Compositor-Dev/examples/opengl/CMakeLists.txt
2018-09-22 18:36:10 +02:00

12 lines
468 B
CMake

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 context.inl)
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)