Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/dep/xxhash/CMakeLists.txt
4243 views
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
21
22