Commit 06168d84 authored by Ghislain MARY's avatar Ghislain MARY

Add option to enable/disable PCAP when building with CMake.

parent 38f215b3
......@@ -62,6 +62,7 @@ option(ENABLE_DEBUG_LOGS "Enable the display of traces showing the execution of
option(ENABLE_DOC "Enable documentation generation with Doxygen." YES)
option(ENABLE_FIXED_POINT "Turn on fixed point computations." ${ENABLE_FIXED_POINT_DEFAULT_VALUE})
option(ENABLE_NON_FREE_CODECS "Allow inclusion of non-free codecs in the build." NO)
option(ENABLE_PCAP "Enable PCAP support." YES)
option(ENABLE_RELATIVE_PREFIX "Find resources relatively to the installation directory." NO)
option(ENABLE_TOOLS "Turn on or off compilation of tools." YES)
option(ENABLE_UNIT_TESTS "Enable compilation of unit tests." YES)
......@@ -132,7 +133,9 @@ else()
find_package(ORTP REQUIRED)
endif()
find_package(PolarSSL)
find_package(PCAP QUIET)
if(ENABLE_PCAP)
find_package(PCAP QUIET)
endif()
if(ENABLE_UNIT_TESTS)
find_package(CUnit)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment