Skip to content

Commit

Permalink
Include directories for Boost and PCAP
Browse files Browse the repository at this point in the history
  • Loading branch information
aguinet committed Feb 26, 2019
1 parent 63eee83 commit a4b74d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a4b74d2

Please sign in to comment.