mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	3D connexion support on Linux:
- Replace hidapi/linux/hid.c with the hidraw variant (link to udev) - Add CMakeLists.txt for hidapi, refactor - Add udev rules file (no installation so far)
This commit is contained in:
		
							parent
							
								
									1aa559585c
								
							
						
					
					
						commit
						82fed1790a
					
				
					 8 changed files with 544 additions and 1237 deletions
				
			
		
							
								
								
									
										17
									
								
								src/hidapi/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/hidapi/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
 | 
			
		||||
if (WIN32)
 | 
			
		||||
    set(HIDAPI_IMPL win/hid.c)
 | 
			
		||||
elseif (APPLE)
 | 
			
		||||
    set(HIDAPI_IMPL mac/hid.c)
 | 
			
		||||
else ()
 | 
			
		||||
    # Assume Linux or Unix other than Mac OS
 | 
			
		||||
    set(HIDAPI_IMPL linux/hid.c)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
include_directories(include)
 | 
			
		||||
 | 
			
		||||
add_library(hidapi STATIC ${HIDAPI_IMPL})
 | 
			
		||||
 | 
			
		||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
 | 
			
		||||
    target_link_libraries(hidapi udev)
 | 
			
		||||
endif()
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue