mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Profile: add define when building subsurface-mobile
This way we can conditionally compile out more dependencies on desktop widgets. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									332e484d68
								
							
						
					
					
						commit
						662e2a0ff3
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -14,6 +14,9 @@ set(SUBSURFACE_PROFILE_LIB_SRCS
 | 
				
			||||||
	tankitem.cpp
 | 
						tankitem.cpp
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
source_group("Subsurface Profile" FILES ${SUBSURFACE_PROFILE_LIB_SRCS})
 | 
					source_group("Subsurface Profile" FILES ${SUBSURFACE_PROFILE_LIB_SRCS})
 | 
				
			||||||
 | 
					if (SUBSURFACE_MOBILE)
 | 
				
			||||||
 | 
						add_definitions(-DSUBSURFACE_MOBILE=1)
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_library(subsurface_profile STATIC ${SUBSURFACE_PROFILE_LIB_SRCS})
 | 
					add_library(subsurface_profile STATIC ${SUBSURFACE_PROFILE_LIB_SRCS})
 | 
				
			||||||
target_link_libraries(subsurface_profile ${QT_LIBRARIES})
 | 
					target_link_libraries(subsurface_profile ${QT_LIBRARIES})
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue