Removed duplicate cmake code

Prefer GLVND OpenGL
This commit is contained in:
Jan Möbius
2022-02-23 13:25:25 +01:00
parent 9202308922
commit cd26cd20e0

View File

@@ -37,6 +37,8 @@ if ( BUILD_APPS )
endif()
set( OpenGL_GL_PREFERENCE GLVND)
# find needed packages for gui applications
find_package (OpenGL)
@@ -70,17 +72,12 @@ if ( BUILD_APPS )
# Add ui apps as dependency before fixbundle
if ( WIN32 AND NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles")
# Required on Windows (NOTMINGW) and APPLE
if ( APPLE OR (WIN32 AND NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles") )
# let bundle generation depend on all targets
add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui Synthesizer)
endif()
# Add ui apps as dependency before fixbundle
if ( APPLE)
# let bundle generation depend on all targets
add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui Synthesizer)
endif()
if ( WIN32 )
FILE(GLOB files_install_app_dlls "${CMAKE_BINARY_DIR}/Build/*.dll" )
INSTALL(FILES ${files_install_app_dlls} DESTINATION . )