| 
				
				
					
						
					
				
				
				 | 
			
			 | 
			
			@ -211,27 +211,32 @@ if (_GLFW_X11) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    # Check for XRandR (modern resolution switching and gamma control) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    if (NOT X11_Xrandr_INCLUDE_PATH) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "The RandR headers were not found") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "RandR headers not found; install libxrandr development package") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    endif() | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    # Check for Xinerama (legacy multi-monitor support) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    if (NOT X11_Xinerama_INCLUDE_PATH) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "The Xinerama headers were not found") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "Xinerama headers not found; install libxinerama development package") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    endif() | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    # Check for Xkb (X keyboard extension) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    if (NOT X11_Xkb_INCLUDE_PATH) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "The X keyboard extension headers were not found") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "XKB headers not found; install X11 development package") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    endif() | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    # Check for Xcursor (cursor creation from RGBA images) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    if (NOT X11_Xcursor_INCLUDE_PATH) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "The Xcursor headers were not found") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "Xcursor headers not found; install libxcursor development package") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    endif() | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    # Check for XInput (modern HID input) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    if (NOT X11_Xi_INCLUDE_PATH) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "The XInput headers were not found") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "XInput headers not found; install libxi development package") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    endif() | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			     | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    # Check for X Shape (custom window input shape) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    if (NOT X11_Xshape_INCLUDE_PATH) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        message(FATAL_ERROR "X Shape headers not found; install libxext development package") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    endif() | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    list(APPEND glfw_INCLUDE_DIRS "${X11_Xrandr_INCLUDE_PATH}" | 
			
		
		
	
	
		
			
				| 
				
					
						
					
				
				
					
						
					
				
				
				 | 
			
			 | 
			
			@ -290,11 +295,10 @@ if (_GLFW_COCOA) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    list(APPEND glfw_LIBRARIES | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        "-framework Cocoa" | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        "-framework IOKit" | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        "-framework CoreFoundation" | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        "-framework CoreVideo") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			        "-framework CoreFoundation") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    set(glfw_PKG_DEPS "") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			    set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			endif() | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			#-------------------------------------------------------------------- | 
			
		
		
	
	
		
			
				| 
				
					
						
					
				
				
					
						
					
				
				
				 | 
			
			 | 
			
			@ -323,7 +327,7 @@ include(CMakePackageConfigHelpers) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			set(GLFW_CONFIG_PATH "${CMAKE_INSTALL_LIBDIR}/cmake/glfw3") | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			configure_package_config_file(src/glfw3Config.cmake.in | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			configure_package_config_file(CMake/glfw3Config.cmake.in | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			                              src/glfw3Config.cmake | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			                              INSTALL_DESTINATION "${GLFW_CONFIG_PATH}" | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			                              NO_CHECK_REQUIRED_COMPONENTS_MACRO) | 
			
		
		
	
	
		
			
				| 
				
				
				
					
						
					
				
				 | 
			
			 | 
			
			@ -332,9 +336,9 @@ write_basic_package_version_file(src/glfw3ConfigVersion.cmake | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			                                 VERSION ${GLFW_VERSION} | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			                                 COMPATIBILITY SameMajorVersion) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			configure_file(src/glfw_config.h.in src/glfw_config.h @ONLY) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			configure_file(CMake/glfw_config.h.in src/glfw_config.h @ONLY) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			configure_file(src/glfw3.pc.in src/glfw3.pc @ONLY) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			configure_file(CMake/glfw3.pc.in src/glfw3.pc @ONLY) | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			
 | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			#-------------------------------------------------------------------- | 
			
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
			# Add subdirectories | 
			
		
		
	
	
		
			
				| 
				
					
						
					
				
				
				
				 | 
			
			 | 
			
			
 |