On 5/3/2010 2:30 PM, Mr Shore wrote:
Hi all, I'm using winpcap for my project.
The detailed steps to use it are here
<http://www.winpcap.org/docs/docs_40_2/html/group__wpcapsamps.html> ,
but I don't know whether cmake supports these two operations:
* If your program uses Win32 specific functions of WinPcap, remember
to include /WPCAP/ among the preprocessor definitions.
add_definitions(-DWPCAP)
* If your program uses the remote capture capabilities of WinPcap,
add / HAVE_REMOTE/ among the preprocessor definitions. Do /not/
include remote-ext.h directly in your source files.
add_definitions(-DHAVE_REMOTE)
find_library(WPCAPLIB wpcap)
target_link_library(mylib ${WPCAPLIB})
-Bill
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake