3 SET(BUILD_STRING "generic")
7 IF (CMAKE_HAVE_PTHREAD_CREATE)
8 ADD_EXECUTABLE(${PROJECT_NAME} ../hash.c
25 ADD_DEFINITIONS(-DPROGNAME_STRING="${PROJECT_NAME}"
26 -DVERSION_STRING="${VERSION}"
27 -DBUILD_STRING="${BUILD_STRING}"
28 -D_FILE_OFFSET_BITS=64
30 -D_LARGEFILE64_SOURCE)
31 POD2MAN(${CMAKE_SOURCE_DIR}/netsniff-ng.c netsniff-ng 8)
32 TARGET_LINK_LIBRARIES(netsniff-ng ${CMAKE_THREAD_LIBS_INIT})
33 FILE(GLOB rules_files "../examples/bpfc/*.bpf")
34 INSTALL(FILES ${rules_files} DESTINATION ${CONFIG_INSTALL_PATH}/rules/)
35 INSTALL(FILES ../conf/ether.conf ../conf/tcp.conf ../conf/udp.conf ../conf/oui.conf DESTINATION ${CONFIG_INSTALL_PATH})
36 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${EXECUTABLE_INSTALL_PATH})
37 ELSE(CMAKE_HAVE_PTHREAD_CREATE)
38 MESSAGE("pthread is missing on target. Skipping ${PROJECT_NAME} build.")
39 ENDIF(CMAKE_HAVE_PTHREAD_CREATE)