PCAP in CLion
Answered
Hi, i really need to use PCAP library in CLion. How can I import this library?
Please sign in to leave a comment.
Hi, I had same problem. Follow these steps:
#after your flags
SET(CMAKE_MODULE_PATH "/your_project_directory")
find_package(PCAP REQUIRED)
#in the end
target_link_libraries(YOUR_PROJECT ${PCAP_LIBRARY})
Helped me, good luck!
Also you can take a look at SO: https://stackoverflow.com/questions/43322488/cmake-undefined-reference-to-any-pcap-functions