blob: f4630222e35a420ba4c2278588a39e64d5daeb11 [file] [log] [blame]
Brian Waters13d96012017-12-08 16:53:31 -06001# The Diameter EAP Application extension
2PROJECT("Diameter EAP Application extension" C)
3
4# Find MySQL
5FIND_PACKAGE(MySQL REQUIRED)
6FIND_PACKAGE(Gcrypt REQUIRED)
7INCLUDE_DIRECTORIES(${MySQL_INCLUDE_DIR})
8
9# Parse plugins
10ADD_SUBDIRECTORY(plugins)
11
12# Parser
13BISON_FILE(diameap.y)
14FLEX_FILE(diameap.l)
15SET_SOURCE_FILES_PROPERTIES(lex.diameap.c diameap.tab.c PROPERTIES COMPILE_FLAGS "-I \"${CMAKE_CURRENT_SOURCE_DIR}\"")
16
17
18set( 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
47FD_ADD_EXTENSION(app_diameap ${diameapsrc})
48
49TARGET_LINK_LIBRARIES(app_diameap ${GCRYPT_LIBRARY} ${GNUTLS_LIBRARIES} ${MySQL_LIBRARY} )
50
51####
52## INSTALL section ##
53
54INSTALL(TARGETS app_diameap
55 LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX}
56 COMPONENT freeDiameter-eap-server)