2024-08-23 18:01:37 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-08-29 15:05:03 +08:00
|
|
|
index 1a1f8e9..cf207d2 100644
|
2024-08-23 18:01:37 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-08-29 15:05:03 +08:00
|
|
|
@@ -20,9 +20,12 @@ add_library(ls-qpack "")
|
2024-08-23 18:01:37 +08:00
|
|
|
target_include_directories(ls-qpack PUBLIC .)
|
|
|
|
target_sources(ls-qpack PRIVATE lsqpack.c)
|
|
|
|
|
|
|
|
-target_include_directories(ls-qpack PRIVATE deps/xxhash/)
|
|
|
|
if(LSQPACK_XXH)
|
|
|
|
target_sources(ls-qpack PRIVATE deps/xxhash/xxhash.c)
|
|
|
|
+else()
|
2024-08-29 15:05:03 +08:00
|
|
|
+ find_package(xxHash CONFIG REQUIRED)
|
|
|
|
+ target_link_libraries(ls-qpack PUBLIC xxHash::xxhash)
|
2024-08-23 18:01:37 +08:00
|
|
|
+ set(LSQPACK_DEPENDS "libxxhash")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32)
|