Mercurial > hg > freeDiameter
comparison freeDiameter/CMakeLists.txt @ 592:7ed07736c661
Fix issue about gcrypt for Fedora, and added INSTALL file for this distribution
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 01 Nov 2010 18:46:39 +0900 |
parents | 1cb9352359f4 |
children |
comparison
equal
deleted
inserted
replaced
591:88a494357a9d | 592:7ed07736c661 |
---|---|
57 MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent") | 57 MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent") |
58 Endif ( NOT GCRYPT_INCLUDE_DIR ) | 58 Endif ( NOT GCRYPT_INCLUDE_DIR ) |
59 MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR) | 59 MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR) |
60 INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR}) | 60 INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR}) |
61 | 61 |
62 # Also we need libgcrypt to... display its version :( | |
63 find_library(GCRYPT_LIBRARY | |
64 NAMES gcrypt | |
65 ) | |
66 If ( NOT GCRYPT_LIBRARY ) | |
67 MESSAGE(SEND_ERROR "Unable to find libgcrypt, please install libgcrypt or equivalent") | |
68 Endif ( NOT GCRYPT_LIBRARY ) | |
69 SET(FD_LIBS ${FD_LIBS} ${GCRYPT_LIBRARY}) | |
70 | |
71 | |
62 | 72 |
63 # Build the executable | 73 # Build the executable |
64 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c) | 74 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c) |
65 | 75 |
66 # The version | 76 # The version |