Brian Waters | 13d9601 | 2017-12-08 16:53:31 -0600 | [diff] [blame] | 1 | # The subproject name |
| 2 | Project("freeDiameter simple daemon" C) |
| 3 | |
| 4 | # Since it uses the libfdcore.h, it needs the include dependencies |
| 5 | INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES}) |
| 6 | |
| 7 | # Build the executable |
| 8 | ADD_EXECUTABLE(freeDiameterd main.c) |
| 9 | |
| 10 | # The version |
| 11 | SET_TARGET_PROPERTIES(freeDiameterd PROPERTIES |
| 12 | VERSION ${FD_PROJECT_VERSION_MAJOR}.${FD_PROJECT_VERSION_MINOR}.${FD_PROJECT_VERSION_REV}) |
| 13 | |
| 14 | # The link command |
| 15 | TARGET_LINK_LIBRARIES(freeDiameterd libfdproto libfdcore ${GNUTLS_LIBRARIES}) |
| 16 | |
| 17 | #### |
| 18 | ## INSTALL section ## |
| 19 | |
| 20 | INSTALL(TARGETS freeDiameterd |
| 21 | RUNTIME DESTINATION ${INSTALL_DAEMON_SUFFIX} |
| 22 | COMPONENT freeDiameter-daemon) |