overte-thingvellir/tools/gpu-frame-player/CMakeLists.txt
Dale Glass 7b6fbe1f69 Set OpenGL_GL_PREFERENCE to LEGACY
GLVND appears to break the entire UI on ATI video cards.

It was set to GLVND due to an understanding that this was a no-op setting, but it turns
out the documentation in OpenGL_GL_PREFERENCE is confusing, and it looks like LEGACY
is the setting that was being used after all.

An additional point of interest is that debian/rules contained OpenGL_GL_PREFERENCE=GLVND,
and this was done back in the High Fidelity days. It's uncertain whether this was correct
or not, though.
2020-10-13 20:13:45 +02:00

43 lines
792 B
CMake

set(TARGET_NAME gpu-frame-player)
setup_memory_debugger()
if (APPLE)
set(CMAKE_MACOSX_BUNDLE TRUE)
endif()
setup_hifi_project(Gui Widgets)
if (APPLE)
unset(CMAKE_MACOSX_BUNDLE)
endif()
# link in the shared libraries
link_hifi_libraries(
shared ktx shaders gpu
# vk gpu-vk
gl ${PLATFORM_GL_BACKEND}
)
target_compile_definitions(${TARGET_NAME} PRIVATE USE_GL)
set(OpenGL_GL_PREFERENCE "LEGACY")
target_opengl()
#target_vulkan()
package_libraries_for_deployment()
if (BUILD_GPU_FRAME_PLAYER_ONLY)
# setup install of executable and things copied by fixup/windeployqt
install(
DIRECTORY "$<TARGET_FILE_DIR:${TARGET_NAME}>/"
DESTINATION "."
COMPONENT "client"
PATTERN "*.pdb" EXCLUDE
PATTERN "*.lib" EXCLUDE
PATTERN "*.exp" EXCLUDE
)
endif()