mailmap: add mail alias
[transsip.git] / src / transsip / CMakeLists.txt
blob200d4581635f8d99ea2d603fa4a483d00be2bbde
1 PROJECT(transsip C)
3 SET(BUILD_STRING "generic")
4 FIND_PACKAGE(Threads)
5 FIND_PACKAGE(Readline)
6 FIND_PACKAGE(SpeexDSP)
7 FIND_PACKAGE(Asound)
8 FIND_PACKAGE(Celt)
10 FIND_LIBRARY(M_LIB m REQUIRED)
12 INCLUDE(Pod2Man)
14 IF (CMAKE_HAVE_PTHREAD_CREATE AND READLINE_FOUND AND SPEEXDSP_FOUND AND Asound_FOUND AND CELT_FOUND)
15         ADD_EXECUTABLE(${PROJECT_NAME}  ../xmalloc.c
16                                         ../gf.c
17                                         ../mat.c
18                                         ../poly.c
19                                         ../alsa.c
20                                         ../engine.c
21                                         ../notifier.c
22                                         ../call_notifier.c
23                                         ../xutils.c
24                                         ../stun.c
25                                         ../cli.c
26                                         ../clicmds.c
27                                         ../transsip.c)
28         ADD_DEFINITIONS(-DPROGNAME_STRING="${PROJECT_NAME}"
29                 -DVERSION_STRING="${VERSION}"
30                 -DBUILD_STRING="${BUILD_STRING}")
31         POD2MAN(${CMAKE_SOURCE_DIR}/transsip.c transsip 1)
32         TARGET_LINK_LIBRARIES(transsip ${CMAKE_THREAD_LIBS_INIT} ${SPEEXDSP_LIBRARY} ${Asound_LIBRARY} ${CELT_LIBRARY} ${M_LIB} ${READLINE_LIBRARY})
33         INSTALL(FILES ../sounds/busytone.s16 ../sounds/dialtone.s16 ../sounds/ring.s16 DESTINATION ${CONFIG_INSTALL_PATH}/sounds/)
34         INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${EXECUTABLE_INSTALL_PATH})
35 ELSE (CMAKE_HAVE_PTHREAD_CREATE AND READLINE_FOUND AND SPEEXDSP_FOUND AND Asound_FOUND AND CELT_FOUND)
36         MESSAGE("pthread or libreadline-dev or libspeexdsp-dev or libasound-dev or libcelt-dev is missing on target. Skipping ${PROJECT_NAME} build.")
37 ENDIF (CMAKE_HAVE_PTHREAD_CREATE AND READLINE_FOUND AND SPEEXDSP_FOUND AND Asound_FOUND AND CELT_FOUND)