We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b54022 commit 6385ff8Copy full SHA for 6385ff8
src/inputs/pcap/CMakeLists.txt
@@ -2,6 +2,14 @@ message(STATUS "Input Module: Pcap")
2
3
set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS ON)
4
5
+if (WIN32)
6
+ find_package(npcap REQUIRED CONFIG)
7
+ set(ADDITIONAL_LIBS npcap::npcap)
8
+else()
9
+ find_package(libpcap REQUIRED CONFIG)
10
+ set(ADDITIONAL_LIBS libpcap::libpcap)
11
+endif()
12
+
13
corrade_add_static_plugin(VisorInputPcap ${CMAKE_CURRENT_BINARY_DIR}
14
PcapInput.conf
15
PcapInputModulePlugin.cpp
@@ -19,6 +27,7 @@ target_link_libraries(VisorInputPcap
19
27
PUBLIC
20
28
Visor::Core
21
29
Visor::Lib::Utils
30
+ ${ADDITIONAL_LIBS}
22
31
)
23
32
24
33
set(VISOR_STATIC_PLUGINS ${VISOR_STATIC_PLUGINS} Visor::Input::Pcap PARENT_SCOPE)
0 commit comments