@ -34,45 +34,15 @@ include_directories(
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    $ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				# # #  T R A N S L A T I O N S 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				# 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				# 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				set (  TS_FILES  ""  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				set (  calamares_i18n_qrc_content  ""  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				#  c a l a m a r e s  a n d  q t  l a n g u a g e  f i l e s 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				foreach (  lang  ${ CALAMARES_TRANSLATION_LANGUAGES }  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    foreach (  tlsource  "calamares_${lang}"  "tz_${lang}"  "kb_${lang}"  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        if (  EXISTS  "${CMAKE_SOURCE_DIR}/lang/${tlsource}.ts"  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				            set (  calamares_i18n_qrc_content  "${calamares_i18n_qrc_content}<file>${tlsource}.qm</file>\n"  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				            list (  APPEND  TS_FILES  "${CMAKE_SOURCE_DIR}/lang/${tlsource}.ts"  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        endif ( ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    endforeach ( ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				endforeach ( ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				set (  trans_file  calamares_i18n  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				set (  trans_infile  ${ CMAKE_CURRENT_BINARY_DIR } / ${ trans_file } .qrc  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				set (  trans_outfile  ${ CMAKE_CURRENT_BINARY_DIR } /qrc_ ${ trans_file } .cxx  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				configure_file (  ${ CMAKE_SOURCE_DIR } /lang/calamares_i18n.qrc.in  ${ trans_infile }  @ONLY  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				qt5_add_translation ( QM_FILES  ${ TS_FILES } ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				#  R u n  t h e  r e s o u r c e  compiler  ( rcc_options  should  already  be  set ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				add_custom_command ( 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    O U T P U T  $ { t r a n s _ o u t f i l e } 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    C O M M A N D  " $ { Q t 5 C o r e _ R C C _ E X E C U T A B L E } " 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    A R G S  $ { r c c _ o p t i o n s }  - - f o r m a t - v e r s i o n  1  - n a m e  $ { t r a n s _ f i l e }  - o  $ { t r a n s _ o u t f i l e }  $ { t r a n s _ i n f i l e } 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    M A I N _ D E P E N D E N C Y  $ { t r a n s _ i n f i l e } 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    D E P E N D S  $ { Q M _ F I L E S } 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				# # #  E X E C U T A B L E 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				# 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				#  " c a l a m a r e s _ b i n "  i s  t h e  m a i n  a p p l i c a t i o n ,  n o t  t o  b e  c o n f u s e d  w i t h 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				#  t h e  t a r g e t  " c a l a m a r e s "  w h i c h  i s  t h e  n o n - G U I  l i b r a r y  p a r t . 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				# 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				add_executable (  calamares_bin  ${ calamaresSources }  calamares.qrc  ${ trans_outfile }  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				#  T h e  c a l a m a r e s - i 1 8 n . c x x  f i l e  - -  f u l l  p a t h  i n  C A L A M A R E S _ T R A N S L A T I O N S _ S O U R C E  - - 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				#  i s  c r e a t e d  a s  a  t a r g e t  i n  t h e  l a n g /  d i r e c t o r y .  T h i s  i s  c o m p i l e d  t o  a 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				#  library  ( it's  just  the  result  of  a  QRC  compile ) . 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				add_executable (  calamares_bin  ${ calamaresSources }  calamares.qrc  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				target_include_directories (  calamares_bin  PRIVATE  ${ CMAKE_SOURCE_DIR }  ) 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				set_target_properties ( calamares_bin 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    P R O P E R T I E S 
 
			
		 
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
			
			 
			 
			
				@ -91,6 +61,7 @@ target_link_libraries( calamares_bin
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				    P R I V A T E 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        c a l a m a r e s 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        c a l a m a r e s u i 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        c a l a m a r e s - i 1 8 n 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        Q t 5 : : C o r e 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        Q t 5 : : W i d g e t s 
 
			
		 
		
	
		
			
				 
				 
			
			 
			 
			
				        K F 5 : : C o r e A d d o n s