mirror of
				https://github.com/hedge-dev/XenosRecomp.git
				synced 2025-10-30 07:12:17 +00:00 
			
		
		
		
	Initial Linux attempt.
This commit is contained in:
		
							parent
							
								
									4b69741e19
								
							
						
					
					
						commit
						cb2f80ba6c
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,7 @@ add_executable(ShaderRecomp
 | 
			
		|||
    "${SMOLV_SOURCE_DIR}/smolv.cpp")
 | 
			
		||||
 | 
			
		||||
find_package(directx-dxc CONFIG REQUIRED)
 | 
			
		||||
find_package(xxhash CONFIG REQUIRED)
 | 
			
		||||
find_package(xxHash CONFIG REQUIRED)
 | 
			
		||||
find_package(zstd CONFIG REQUIRED)
 | 
			
		||||
find_package(fmt CONFIG REQUIRED)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -37,10 +37,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
 | 
			
		|||
    target_compile_options(ShaderRecomp PRIVATE -Wno-switch -Wno-unused-variable)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
target_compile_definitions(ShaderRecomp PRIVATE _CRT_SECURE_NO_WARNINGS)
 | 
			
		||||
if (WIN32)
 | 
			
		||||
    target_compile_definitions(ShaderRecomp PRIVATE _CRT_SECURE_NO_WARNINGS)
 | 
			
		||||
    file(COPY ${PACKAGE_PREFIX_DIR}/bin/dxil.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if (SHADER_RECOMP_DXIL)
 | 
			
		||||
    target_compile_definitions(ShaderRecomp PRIVATE SHADER_RECOMP_DXIL)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
file(COPY ${PACKAGE_PREFIX_DIR}/bin/dxil.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue