• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cmake_minimum_required( VERSION 2.8.8 )
2
3project( pcap_tests )
4
5######################################
6# Register targets
7######################################
8
9if( MSVC )
10    file(GLOB PROJECT_SOURCE_LIST_WIN32_C
11        ${pcap_SOURCE_DIR}/missing/getopt.c
12    )
13endif( MSVC )
14
15ADD_EXECUTABLE (can_set_rfmon_test can_set_rfmon_test.c ${PROJECT_SOURCE_LIST_WIN32_C} )
16target_link_libraries ( can_set_rfmon_test pcap )
17
18ADD_EXECUTABLE (capturetest capturetest.c ${PROJECT_SOURCE_LIST_WIN32_C} )
19target_link_libraries ( capturetest pcap )
20
21ADD_EXECUTABLE (filtertest filtertest.c ${PROJECT_SOURCE_LIST_WIN32_C} )
22target_link_libraries ( filtertest pcap )
23
24ADD_EXECUTABLE (indalldevstest findalldevstest.c ${PROJECT_SOURCE_LIST_WIN32_C} )
25target_link_libraries ( indalldevstest pcap )
26
27ADD_EXECUTABLE (opentest opentest.c ${PROJECT_SOURCE_LIST_WIN32_C} )
28target_link_libraries ( opentest pcap )
29
30#ADD_EXECUTABLE (pcap_compile_test pcap_compile_test.c ${PROJECT_SOURCE_LIST_WIN32_C} )
31#target_link_libraries ( pcap_compile_test pcap )
32
33ADD_EXECUTABLE (reactivatetest reactivatetest.c ${PROJECT_SOURCE_LIST_WIN32_C} )
34target_link_libraries ( reactivatetest pcap )
35
36if( NOT WIN32 )
37    ADD_EXECUTABLE (selpolltest selpolltest.c ${PROJECT_SOURCE_LIST_WIN32_C} )
38    target_link_libraries ( selpolltest pcap )
39endif()
40
41ADD_EXECUTABLE (valgrindtest valgrindtest.c ${PROJECT_SOURCE_LIST_WIN32_C} )
42target_link_libraries ( valgrindtest pcap )
43