Commit bb859c8e authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

More cleanups in the CMakeLists files

parent 7a22a1d8
......@@ -27,14 +27,7 @@ ENDMACRO(FD_EXTENSION_SUBDIR)
OPTION(ALL_EXTENSIONS "Build ALL available extensions? (disable to select individual components)" OFF)
# The extensions include the headers of freeDiameter that contains gnutls objects
FIND_PACKAGE(GnuTLS REQUIRED)
INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_DIR})
find_path(GCRYPT_INCLUDE_DIR NAMES gcrypt.h)
If ( NOT GCRYPT_INCLUDE_DIR )
MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent")
Endif ( NOT GCRYPT_INCLUDE_DIR )
MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR)
INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES})
###########################
......
# The subproject name
Project("freeDiameter simple daemon" C)
# Since it uses the libfdcore.h, it needs the include dependencies
INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES})
# Build the executable
ADD_EXECUTABLE(freeDiameterd main.c)
......
......@@ -29,6 +29,7 @@ ADD_DEFINITIONS(-DTRACE_LEVEL=NONE)
INCLUDE_DIRECTORIES( "../libfdproto" )
INCLUDE_DIRECTORIES( "../libfdcore" )
INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES})
##############################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment