3 SET(BUILD_STRING "generic")
7 IF (CMAKE_HAVE_PTHREAD_CREATE)
8 ADD_EXECUTABLE(${PROJECT_NAME} ../xmalloc.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)