Brian Waters | 13d9601 | 2017-12-08 16:53:31 -0600 | [diff] [blame] | 1 | # The app_sip extension |
| 2 | PROJECT("Diameter SIP Application (RFC4740)" C) |
| 3 | |
| 4 | FIND_PACKAGE(MySQL REQUIRED) |
| 5 | INCLUDE_DIRECTORIES(${MySQL_INCLUDE_DIR}) |
| 6 | |
| 7 | # Parser files |
| 8 | BISON_FILE(app_sip.y) |
| 9 | FLEX_FILE(app_sip.l) |
| 10 | SET_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 |
| 13 | SET( 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 |
| 31 | FD_ADD_EXTENSION(app_sip ${DIAM_SIP_SRC}) |
| 32 | |
| 33 | TARGET_LINK_LIBRARIES(app_sip ${MySQL_LIBRARIES}) |
| 34 | |
| 35 | SUBDIRS(tools) |
| 36 | |
| 37 | #### |
| 38 | ## INSTALL section ## |
| 39 | |
| 40 | INSTALL(TARGETS app_sip |
| 41 | LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} |
| 42 | COMPONENT freeDiameter-sip-server) |
| 43 | |
| 44 | INSTALL(FILES README TODO |
| 45 | DESTINATION /usr/share/doc/freeDiameter-sip-server |
| 46 | CONFIGURATIONS DebianPackage |
| 47 | COMPONENT freeDiameter-sip-server) |