3 SET(BUILD_STRING "generic")
10 FIND_LIBRARY(M_LIB m REQUIRED)
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
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)