capture: Prepare a 32 frame packet mmap buffer by default.
[dabba.git] / dabba / CMakeLists.txt
blobdc3259c288f48c6b253d847219c74e77a1fc4088
1 PROJECT(dabba C)
3 FIND_PACKAGE(Doxygen)
4 INCLUDE(Pod2Man)
6 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/${PROJECT_NAME}/include)
7 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/libdabba/include)
8 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/dabbad/include)
10 IF(DOXYGEN_FOUND)
11         CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
12         ADD_CUSTOM_TARGET(${PROJECT_NAME}-doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
13         ADD_DEPENDENCIES(doc ${PROJECT_NAME}-doc)
14 ENDIF(DOXYGEN_FOUND)
16 ADD_EXECUTABLE(${PROJECT_NAME} dabba.c help.c interface.c ipc.c capture.c)
18 TARGET_LINK_LIBRARIES(${PROJECT_NAME} libdabba)
20 POD2MAN(${CMAKE_CURRENT_SOURCE_DIR}/dabba.c dabba 1)
21 POD2MAN(${CMAKE_CURRENT_SOURCE_DIR}/interface.c dabba-interface 1)
22 POD2MAN(${CMAKE_CURRENT_SOURCE_DIR}/capture.c dabba-capture 1)
24 INSTALL(TARGETS dabba DESTINATION sbin COMPONENT applications)
26 ADD_SUBDIRECTORY(test)