Brian Waters | 13d9601 | 2017-12-08 16:53:31 -0600 | [diff] [blame] | 1 | # The Diameter EAP Application extension |
| 2 | PROJECT("Diameter EAP Application extension" C) |
| 3 | |
| 4 | # Find MySQL |
| 5 | FIND_PACKAGE(MySQL REQUIRED) |
| 6 | FIND_PACKAGE(Gcrypt REQUIRED) |
| 7 | INCLUDE_DIRECTORIES(${MySQL_INCLUDE_DIR}) |
| 8 | |
| 9 | # Parse plugins |
| 10 | ADD_SUBDIRECTORY(plugins) |
| 11 | |
| 12 | # Parser |
| 13 | BISON_FILE(diameap.y) |
| 14 | FLEX_FILE(diameap.l) |
| 15 | SET_SOURCE_FILES_PROPERTIES(lex.diameap.c diameap.tab.c PROPERTIES COMPILE_FLAGS "-I \"${CMAKE_CURRENT_SOURCE_DIR}\"") |
| 16 | |
| 17 | |
| 18 | set( diameapsrc |
| 19 | diameap_defs.h |
| 20 | diameap.h |
| 21 | diameap_server.h |
| 22 | diameap_plugins.h |
| 23 | diameap_eap.h |
| 24 | plugins.h |
| 25 | diameap_eappacket.h |
| 26 | diameap_user.h |
| 27 | diameap.tab.h |
| 28 | diameap.tab.c |
| 29 | lex.diameap.c |
| 30 | diameap.c |
| 31 | diameap_server.c |
| 32 | diameap_plugins.c |
| 33 | diameap_init.c |
| 34 | diameap_common.h |
| 35 | diameap_eappacket.c |
| 36 | libdiameap.h |
| 37 | diameap_eap.c |
| 38 | diameap_mysql.h |
| 39 | diameap_mysql.c |
| 40 | diameap_tls.h |
| 41 | diameap_tls.c |
| 42 | libcrypt.h |
| 43 | libcrypt.c |
| 44 | diameap_user.c |
| 45 | ) |
| 46 | |
| 47 | FD_ADD_EXTENSION(app_diameap ${diameapsrc}) |
| 48 | |
| 49 | TARGET_LINK_LIBRARIES(app_diameap ${GCRYPT_LIBRARY} ${GNUTLS_LIBRARIES} ${MySQL_LIBRARY} ) |
| 50 | |
| 51 | #### |
| 52 | ## INSTALL section ## |
| 53 | |
| 54 | INSTALL(TARGETS app_diameap |
| 55 | LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} |
| 56 | COMPONENT freeDiameter-eap-server) |