mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	build-system: add CMake SUBSURFACE_MOBILE_DESKTOP as new build type
Add -DSUBSURFACE_MOBILE_DESKTOP to CMake, allowing the C++ part to be different when compiling for a device or for the desktop. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
		
							parent
							
								
									1b058d58f7
								
							
						
					
					
						commit
						b4b4e7872b
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -179,6 +179,10 @@ elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
 | 
			
		|||
	endif()
 | 
			
		||||
	list(APPEND QT_EXTRA_COMPONENTS QuickControls2)
 | 
			
		||||
	add_definitions(-DSUBSURFACE_MOBILE)
 | 
			
		||||
 | 
			
		||||
	# add definition to seperate mobile for devices and for desktop
 | 
			
		||||
	add_definitions(-DSUBSURFACE_MOBILE_DESKTOP)
 | 
			
		||||
 | 
			
		||||
	message(STATUS "Building Subsurface-mobile requires BT support")
 | 
			
		||||
	set(BTSUPPORT ON)
 | 
			
		||||
endif()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue