From a4b74d2776dfcd4c09917a2d9389519e1448fe03 Mon Sep 17 00:00:00 2001 From: Adrien Guinet Date: Tue, 26 Feb 2019 14:09:17 +0100 Subject: [PATCH] Include directories for Boost and PCAP --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d240f4f..8ae2192 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,15 +6,16 @@ set (VERSION_MINOR 3) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) -# PCAP find_package(PCAP REQUIRED) +include_directories(${PCAP_INCLUDE_DIR}) find_package(Boost) if (NOT ${Boost_FOUND}) # If boost can't be found, use our own version include_directories(third-party) +else() + include_directories(${Boost_INCLUDE_DIR}) endif() include_directories(include) - add_subdirectory(src)