duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

CMakeLists.txt (611B)


      1 set(SRCS
      2   include/xxhash.h
      3   src/xxhash.c
      4 )
      5 
      6 add_library(xxhash ${SRCS})
      7 
      8 if(CPU_ARCH_X86 OR CPU_ARCH_X64)
      9   # Required if building with -mavx or -march=native, but you shouldn't be building with it.
     10   target_compile_definitions(xxhash PRIVATE "XXH_X86DISPATCH_ALLOW_AVX")
     11   target_sources(xxhash PRIVATE
     12     include/xxh_x86dispatch.h
     13     src/xxh_x86dispatch.c
     14   )
     15 endif()
     16 
     17 target_include_directories(xxhash PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
     18 target_include_directories(xxhash INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
     19 target_compile_definitions(xxhash INTERFACE "XXH_STATIC_LINKING_ONLY")
     20