Brian Waters | 13d9601 | 2017-12-08 16:53:31 -0600 | [diff] [blame] | 1 | # The rt_busypeer extension |
| 2 | PROJECT("Handling of TOO_BUSY messages and relay timeout capability routing extension" C) |
| 3 | |
| 4 | # Parser files |
| 5 | BISON_FILE(rtbusy_conf.y) |
| 6 | FLEX_FILE(rtbusy_conf.l) |
| 7 | SET_SOURCE_FILES_PROPERTIES(lex.rtbusy_conf.c rtbusy_conf.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}") |
| 8 | |
| 9 | # List of source files |
| 10 | SET( RTBUSY_SRC |
| 11 | rtbusy.c |
| 12 | rtbusy.h |
| 13 | lex.rtbusy_conf.c |
| 14 | rtbusy_conf.tab.c |
| 15 | rtbusy_conf.tab.h |
| 16 | ) |
| 17 | |
| 18 | INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) |
| 19 | |
| 20 | # Compile these files as a freeDiameter extension |
| 21 | FD_ADD_EXTENSION(rt_busypeers ${RTBUSY_SRC}) |
| 22 | |
| 23 | |
| 24 | #### |
| 25 | ## INSTALL section ## |
| 26 | |
| 27 | # We install with the daemon component because it is a base feature. |
| 28 | INSTALL(TARGETS rt_busypeers |
| 29 | LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} |
| 30 | COMPONENT freeDiameter-daemon) |