mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	FindOPENMPT cmake
This commit is contained in:
		
							parent
							
								
									281cdb5597
								
							
						
					
					
						commit
						0f4ef53a09
					
				
					 1 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								cmake/Modules/FindOPENMPT.cmake
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								cmake/Modules/FindOPENMPT.cmake
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| include(LibFindMacros) | ||||
| 
 | ||||
| libfind_pkg_check_modules(OPENMPT_PKGCONF OPENMPT) | ||||
| 
 | ||||
| find_path(OPENMPT_INCLUDE_DIR | ||||
| 	NAMES libopenmpt.h | ||||
| 	PATHS | ||||
| 		${OPENMPT_PKGCONF_INCLUDE_DIRS} | ||||
| 		"/usr/include/libopenmpt" | ||||
| 		"/usr/local/include/libopenmpt" | ||||
| ) | ||||
| 
 | ||||
| find_library(OPENMPT_LIBRARY | ||||
| 	NAMES openmpt | ||||
| 	PATHS | ||||
| 		${OPENMPT_PKGCONF_LIBRARY_DIRS} | ||||
| 		"/usr/lib" | ||||
| 		"/usr/local/lib" | ||||
| ) | ||||
| 
 | ||||
| set(OPENMPT_PROCESS_INCLUDES OPENMPT_INCLUDE_DIR) | ||||
| set(OPENMPT_PROCESS_LIBS OPENMPT_LIBRARY) | ||||
| libfind_process(OPENMPT) | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 mazmazz
						mazmazz