From fde3a6b73f416ecae47ff7b91046c470e118869c Mon Sep 17 00:00:00 2001 From: Elad Solomon Date: Tue, 20 Jul 2021 18:50:21 +0300 Subject: [PATCH] Added kqueue as conan package --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7c147d488..6594e5380a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,7 @@ if ( MSVC ) openssl/1.1.1i winflexbison/2.5.24 npcap-wpcap/1.31 + kqueue/2.3.2 GENERATORS cmake_find_package) # Install packages from conanfile @@ -54,6 +55,12 @@ if ( MSVC ) find_package(ZLIB) set(ZLIB_LIBRARY ${ZLIB_LIBRARIES}) + # Set Kqueue to point at the right variable. + find_package(kqueue) + set(LIBKQUEUE_ROOT_DIR "${kqueue_INCLUDES}/../") + set(LIBKQUEUE_INCLUDE_DIRS ${kqueue_INCLUDES}) + set(LIBKQUEUE_LIBRARIES ${kqueue_LIBS}) + add_subdirectory(auxil/libunistd) set(UNISTD_INCLUDES ${CMAKE_SOURCE_DIR}/auxil/libunistd/unistd ${CMAKE_SOURCE_DIR}/auxil/libunistd/regex) include_directories(BEFORE ${UNISTD_INCLUDES})