mirror of https://github.com/stenzek/duckstation
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			611 B
		
	
	
	
		
			CMake
		
	
			
		
		
	
	
			21 lines
		
	
	
		
			611 B
		
	
	
	
		
			CMake
		
	
set(SRCS
 | 
						|
  include/xxhash.h
 | 
						|
  src/xxhash.c
 | 
						|
)
 | 
						|
 | 
						|
add_library(xxhash ${SRCS})
 | 
						|
 | 
						|
if(CPU_ARCH_X86 OR CPU_ARCH_X64)
 | 
						|
  # Required if building with -mavx or -march=native, but you shouldn't be building with it.
 | 
						|
  target_compile_definitions(xxhash PRIVATE "XXH_X86DISPATCH_ALLOW_AVX")
 | 
						|
  target_sources(xxhash PRIVATE
 | 
						|
    include/xxh_x86dispatch.h
 | 
						|
    src/xxh_x86dispatch.c
 | 
						|
  )
 | 
						|
endif()
 | 
						|
 | 
						|
target_include_directories(xxhash PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
 | 
						|
target_include_directories(xxhash INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
 | 
						|
target_compile_definitions(xxhash INTERFACE "XXH_STATIC_LINKING_ONLY")
 | 
						|
 |