blob: 8bd89d1f5ead1f247eb6c2966ad3a98f45203dec [file] [log] [blame]
Brian Waters13d96012017-12-08 16:53:31 -06001# The app_sip extension
2PROJECT("Diameter SIP Application (RFC4740)" C)
3
4FIND_PACKAGE(MySQL REQUIRED)
5INCLUDE_DIRECTORIES(${MySQL_INCLUDE_DIR})
6
7# Parser files
8BISON_FILE(app_sip.y)
9FLEX_FILE(app_sip.l)
10SET_SOURCE_FILES_PROPERTIES(lex.app_sip.c app_sip.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}")
11
12# List of source files
13SET( DIAM_SIP_SRC
14 lex.app_sip.c
15 app_sip.tab.c
16 app_sip.tab.h
17 app_sip.c
18 app_sip.h
19 libapp_sip.c
20 md5.c
21 multimediaauth.c
22 registrationtermination.c
23 userauthorization.c
24 pushprofile.c
25 serverassignment.c
26 locationinfo.c
27 locationinfosl.c
28)
29
30# Compile as a module
31FD_ADD_EXTENSION(app_sip ${DIAM_SIP_SRC})
32
33TARGET_LINK_LIBRARIES(app_sip ${MySQL_LIBRARIES})
34
35SUBDIRS(tools)
36
37####
38## INSTALL section ##
39
40INSTALL(TARGETS app_sip
41 LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX}
42 COMPONENT freeDiameter-sip-server)
43
44INSTALL(FILES README TODO
45 DESTINATION /usr/share/doc/freeDiameter-sip-server
46 CONFIGURATIONS DebianPackage
47 COMPONENT freeDiameter-sip-server)