src: minor update in header file
[transsip.git] / src / transsip / CMakeLists.txt
blob7ce27faa7f8aada8c0f5a007146648083bd91041
1 PROJECT(transsip C)
3 SET(BUILD_STRING "generic")
4 FIND_PACKAGE(Threads)
5 INCLUDE(Pod2Man)
7 IF (CMAKE_HAVE_PTHREAD_CREATE)
8         ADD_EXECUTABLE(${PROJECT_NAME}  ../xmalloc.c
9                                         ../gf.c
10                                         ../alsa.c
11                                         ../engine.c
12                                         ../notifier.c
13                                         ../call_notifier.c
14                                         ../xutils.c
15                                         ../stun.c
16                                         ../cli.c
17                                         ../clicmds.c
18                                         ../transsip.c)
19         ADD_DEFINITIONS(-DPROGNAME_STRING="${PROJECT_NAME}"
20                 -DVERSION_STRING="${VERSION}"
21                 -DBUILD_STRING="${BUILD_STRING}")
22         POD2MAN(${CMAKE_SOURCE_DIR}/transsip.c transsip 1)
23         TARGET_LINK_LIBRARIES(transsip ${CMAKE_THREAD_LIBS_INIT} -lspeexdsp -lasound -lcelt0 -lm -lreadline)
24         INSTALL(FILES ../sounds/busytone.s16 ../sounds/dialtone.s16 ../sounds/ring.s16 DESTINATION ${CONFIG_INSTALL_PATH}/sounds/)
25         INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${EXECUTABLE_INSTALL_PATH})
26 ELSE(CMAKE_HAVE_PTHREAD_CREATE)
27         MESSAGE("pthread is missing on target. Skipping ${PROJECT_NAME} build.")
28 ENDIF(CMAKE_HAVE_PTHREAD_CREATE)