mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 16:20:05 +00:00 
			
		
		
		
	Define NOMINMAX and multi-processor compilation for wxtest
This commit is contained in:
		
							parent
							
								
									9481bc6e61
								
							
						
					
					
						commit
						40a13e8aa4
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -83,6 +83,14 @@ endif() | ||||||
| 
 | 
 | ||||||
| target_compile_definitions(wxtest PRIVATE SCWX_TEST_DATA_DIR="${SCWX_DIR}/test/data") | target_compile_definitions(wxtest PRIVATE SCWX_TEST_DATA_DIR="${SCWX_DIR}/test/data") | ||||||
| 
 | 
 | ||||||
|  | if (MSVC) | ||||||
|  |     # Don't include Windows macros | ||||||
|  |     target_compile_options(wxtest PRIVATE -DNOMINMAX) | ||||||
|  | 
 | ||||||
|  |     # Enable multi-processor compilation | ||||||
|  |     target_compile_options(wxtest PRIVATE "/MP") | ||||||
|  | endif() | ||||||
|  | 
 | ||||||
| gtest_discover_tests(wxtest) | gtest_discover_tests(wxtest) | ||||||
| 
 | 
 | ||||||
| target_link_libraries(wxtest GTest::gtest | target_link_libraries(wxtest GTest::gtest | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat