Brian Waters | 13d9601 | 2017-12-08 16:53:31 -0600 | [diff] [blame] | 1 | # The test_app extension |
| 2 | PROJECT("Test Diameter Application" C) |
| 3 | |
| 4 | # Parser files |
| 5 | BISON_FILE(ta_conf.y) |
| 6 | FLEX_FILE(ta_conf.l) |
| 7 | SET_SOURCE_FILES_PROPERTIES(lex.ta_conf.c ta_conf.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}") |
| 8 | |
| 9 | # List of source files |
| 10 | SET( APP_TEST_SRC |
| 11 | test_app.h |
| 12 | test_app.c |
| 13 | lex.ta_conf.c |
| 14 | ta_conf.tab.c |
| 15 | ta_conf.tab.h |
| 16 | ta_dict.c |
| 17 | ta_cli.c |
| 18 | ta_bench.c |
| 19 | ta_serv.c |
| 20 | ) |
| 21 | |
| 22 | # Compile as a module |
| 23 | FD_ADD_EXTENSION(test_app ${APP_TEST_SRC}) |
| 24 | |
| 25 | |
| 26 | #### |
| 27 | ## INSTALL section ## |
| 28 | |
| 29 | INSTALL(TARGETS test_app |
| 30 | LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} |
| 31 | COMPONENT freeDiameter-debug-tools) |