X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=CMakeLists.txt;h=d96c4e264f61045c7a05389dfb7cf98714041c02;hb=0852d7234aaa7fbc208975ce2c75868a1dfc0bdc;hp=7ff95a019e777695b7bd49f50a8d33234cdc593f;hpb=66530aabab4bcb5103148f5f3787cdb419b79c90;p=umurmur.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ff95a0..d96c4e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,8 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) option(USE_POLARSSL_TESTCERT "Link to the PolarSSL test certificate and key." OFF) option(USE_POLARSSL_HAVEGE "Use the PolarSSL HAVEGE random generator key." OFF) +option(USE_SHAREDMEMORY_API "Compile with Sharedmemory API support" OFF) + if(USE_POLARSSL_TESTCERT OR USE_POLARSSL_HAVEGE) if(SSL MATCHES "openssl" OR SSL MATCHES "gnutls") message(FATAL_ERROR "Selecting USE_POLARSSL_TESTCERT or USE_POLARSSL_HAVEGE implies SSL=polarssl") @@ -41,6 +43,7 @@ elseif("${SSL}" STREQUAL "polarssl") elseif("${SSL}" STREQUAL "gnutls") find_package(GnuTLS REQUIRED) if(GNUTLS_FOUND) + set(USE_GNUTLS ON) set(SSLIMP_LIBRARIES ${GNUTLS_LIBRARIES}) set(SSLIMP_INCLUDE_DIR ${GNUTLS_INCLUDE_DIR}) set(SSLIMP_LIBRARY_DIR ${GNUTLS_LIB_DIR}) @@ -78,4 +81,10 @@ 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}) + +if(USE_GNUTLS) +# FIXME: port AES128-OCB + target_link_libraries(umurmurd ${LIBCONFIG_LIBRARIES} ${PROTOBUFC_LIBRARIES} ${SSLIMP_LIBRARIES} ${LIBRT} crypto) +else() + target_link_libraries(umurmurd ${LIBCONFIG_LIBRARIES} ${PROTOBUFC_LIBRARIES} ${SSLIMP_LIBRARIES} ${LIBRT}) +endif(USE_GNUTLS)