X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=CMakeLists.txt;h=c59f76dee518659bad58d260636d1ba0eed93cea;hb=2785848e2d632108a2f61aaa41ccca97f5443284;hp=7b784e4760ce6eb9132b283a97172835cd440500;hpb=173142155fc04301936244996a4b5fc77524b077;p=umurmur.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b784e4..c59f76d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,10 +44,14 @@ elseif("${SSL}" STREQUAL "gnutls") find_package(GnuTLS REQUIRED) if(GNUTLS_FOUND) set(USE_GNUTLS ON) - set(SSLIMP_LIBRARIES "${GNUTLS_LIBRARIES} crypto") # FIXME: port AES128-OCB + set(SSLIMP_LIBRARIES ${GNUTLS_LIBRARIES}) set(SSLIMP_INCLUDE_DIR ${GNUTLS_INCLUDE_DIR}) set(SSLIMP_LIBRARY_DIR ${GNUTLS_LIB_DIR}) endif(GNUTLS_FOUND) + find_package(Nettle REQUIRED) + if(NETTLE_FOUND) + set(CRYPTO_LIBRARIES "${NETTLE_LIBRARIES}") + endif(NETTLE_FOUND) endif("${SSL}" STREQUAL "openssl") check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT) @@ -57,7 +61,7 @@ if(NOT HAVE_CLOCK_GETTIME_RT) if(NOT HAVE_CLOCK_GETTIME) check_library_exists(c clock_get_time "mach/time.h" HAVE_CLOCK_GET_TIME) if(NOT HAVE_CLOCK_GET_TIME) - message(FATAL_ERROR "Didn't find clock_gettime() or clock_get_time!") + message(FATAL_ERROR "Didn't find clock_gettime() or clock_get_time()!") endif() endif() else() @@ -81,4 +85,5 @@ if(NOT OLD_CONFIG_FILE) endif(NOT OLD_CONFIG_FILE) add_definitions(${SSLIMP_CFLAGS}) -target_link_libraries(umurmurd ${LIBCONFIG_LIBRARIES} ${PROTOBUFC_LIBRARIES} ${SSLIMP_LIBRARIES} ${LIBRT}) + +target_link_libraries(umurmurd ${LIBCONFIG_LIBRARIES} ${PROTOBUFC_LIBRARIES} ${SSLIMP_LIBRARIES} ${LIBRT} ${CRYPTO_LIBRARIES})