Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 70ecd00390
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (30 sloc) 1.23 kB
# Copyright (C) 2007-2012 LuaDist.
# Created by Peter Kapec
# Redistribution and use of this file is allowed according to the terms of the MIT license.
# For details see the COPYRIGHT file distributed with LuaDist.
# Please note that the package source code is licensed under its own license.
project ( luacrypto C )
cmake_minimum_required ( VERSION 2.8 )
include ( cmake/dist.cmake )
include ( lua )
# Find libraries
find_path ( OPENSSL_INCLUDE_DIR NAMES openssl/err.h )
include_directories ( ${OPENSSL_INCLUDE_DIR} )
find_library ( CRYPTO_LIBRARY NAMES crypto )
find_library ( SSL_LIBRARY NAMES ssl )
if ( WIN32 )
set ( LIBS gdi32 )
endif ( )
include_directories ( src )
if ( WIN32 )
add_definitions ( "-DLUACRYPTO_API=__declspec(dllexport)" )
endif ( WIN32 )
install_lua_module ( crypto src/lcrypto.c LINK ${CRYPTO_LIBRARY} ${SSL_LIBRARY} ${LIBS} )
install_data ( COPYING ChangeLog README NEWS )
install_doc ( doc/ PATTERN Makefile* EXCLUDE )
install_test ( tests/ PATTERN Makefile* EXCLUDE )
add_lua_test ( tests/test.lua WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests )
add_lua_test ( tests/rand.lua )
add_lua_test ( tests/encrypt.lua )
add_lua_test ( tests/pkeytest.lua )
add_lua_test ( tests/open_seal.lua )
Jump to Line
Something went wrong with that request. Please try again.