# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

find_package(PCAP REQUIRED)
if(PCAP_FOUND)
	add_library(benchmark MODULE main.c)

	include_directories(${PCAP_INCLUDE_DIR})
	target_link_libraries(benchmark LINK_PRIVATE ${PCAP_LIBRARY})

	DEPENDS_MODULE(benchmark pcap capture)
	INSTALL_MODULE(benchmark capture)
endif()

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

find_package(PCAP REQUIRED)
if(PCAP_FOUND)
	INCLUDE_MODULE(pcap capture)

	add_library(benchmark MODULE main.c)

	include_directories(${PCAP_INCLUDE_DIR})
	target_link_libraries(benchmark LINK_PRIVATE ${PCAP_LIBRARY})

	DEPENDS_MODULE(benchmark capture-pcap capture)
	INSTALL_MODULE(benchmark capture)
endif()

Revert benchmark capture module build
Revert benchmark capture module build
