X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=cmake%2FModules%2FOptions.cmake;fp=cmake%2FModules%2FOptions.cmake;h=e4750c330f0cc85c57d710835662ec10e81594eb;hb=046935044fe8d2dce3540ad0c385d30edec1f4bf;hp=0000000000000000000000000000000000000000;hpb=363ca814aa120fbab8c5ea4b55e3c79ea5065a7f;p=umurmur.git diff --git a/cmake/Modules/Options.cmake b/cmake/Modules/Options.cmake new file mode 100644 index 0000000..e4750c3 --- /dev/null +++ b/cmake/Modules/Options.cmake @@ -0,0 +1,23 @@ +# PolarSSL +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) + +if(USE_POLARSSL_TESTCERT OR USE_POLARSSL_HAVEGE) + if(SSL NOT MATCHES "polarssl") + message(FATAL_ERROR "Selecting USE_POLARSSL_TESTCERT or USE_POLARSSL_HAVEGE implies SSL=polarssl") + endif() +endif() + +# mbedTLS +option(USE_MBEDTLS_TESTCERT "Link to the mbedTLS test certificate and key." OFF) +option(USE_MBEDTLS_HAVEGE "Use the mbedTLS HAVEGE random generator key." OFF) + +if(USE_MBEDTLS_TESTCERT OR USE_MBEDTLS_HAVEGE) + if(SSL NOT MATCHES "mbedtls") + message(FATAL_ERROR "Selecting USE_MBEDTLS_TESTCERT or USE_MBEDTLS_HAVEGE implies SSL=mbedtls") + endif() +endif() + +# SHM API +option(USE_SHAREDMEMORY_API "Compile with Sharedmemory API support" OFF) +