Mercurial > trustbridge > nss-cmake-static
diff nss-cmake-static.cmake @ 1:247cffdc9b89
Add a pesodo config file for inlcude directories and library names
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 28 Jul 2014 13:00:06 +0200 |
parents | |
children | a945361df361 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nss-cmake-static.cmake Mon Jul 28 13:00:06 2014 +0200 @@ -0,0 +1,42 @@ +# Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik +# Software engineering by Intevation GmbH +# +# This file is Free Software under the GNU GPL (v>=2) +# and comes with ABSOLUTELY NO WARRANTY! +# See LICENSE.txt for details. + +if (NOT EXISTS "${NSS_STATIC_PATH}") + set (NSS_STATIC_PATH ${CMAKE_CURRENT_SOURCE_DIR}) +endif() + +set(NSS_INCLUDE_DIRS + ${CMAKE_CURRENT_BINARY_DIR} + ${NSS_STATIC_PATH}/sqlite + ${NSS_STATIC_PATH}/nspr/pr/include + ${NSS_STATIC_PATH}/nspr/pr/include/private + ${NSS_STATIC_PATH}/nspr/lib/ds + ${NSS_STATIC_PATH}/nspr/lib/libc/include + + ${NSS_STATIC_PATH}/nss/lib/base + ${NSS_STATIC_PATH}/nss/lib/certdb + ${NSS_STATIC_PATH}/nss/lib/certhigh + ${NSS_STATIC_PATH}/nss/lib/cryptohi + ${NSS_STATIC_PATH}/nss/lib/dev + ${NSS_STATIC_PATH}/nss/lib/freebl + ${NSS_STATIC_PATH}/nss/lib/freebl/ecl + ${NSS_STATIC_PATH}/nss/lib/freebl/mpi + ${NSS_STATIC_PATH}/nss/lib/nss + ${NSS_STATIC_PATH}/nss/lib/pk11wrap + ${NSS_STATIC_PATH}/nss/lib/pkcs7 + ${NSS_STATIC_PATH}/nss/lib/pki + ${NSS_STATIC_PATH}/nss/lib/smime + ${NSS_STATIC_PATH}/nss/lib/softoken + ${NSS_STATIC_PATH}/nss/lib/ssl + ${NSS_STATIC_PATH}/nss/lib/util +) + +set(NSS_LIBRARIES nss_static nspr_static) + +if (WIN32) + set(NSS_LIBRARIES ${NSS_LIBARIES} winmm ws2_32) +endif()