blob: 251d5a3cb323e2a6ff7e552c388bb0509edd743d [file] [log] [blame]
Dees_Troy83bd4832013-05-04 12:39:56 +00001# ---------------------------------------------------------------------------
2# OpenAES License
3# ---------------------------------------------------------------------------
4# Copyright (c) 2012, Nabil S. Al Ramli, www.nalramli.com
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:
9#
10# - Redistributions of source code must retain the above copyright notice,
11# this list of conditions and the following disclaimer.
12# - Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26# POSSIBILITY OF SUCH DAMAGE.
27# ---------------------------------------------------------------------------
28
29cmake_minimum_required (VERSION 2.8.0)
30
31project ( "oaes" )
32
33include_directories (
34 ${CMAKE_CURRENT_SOURCE_DIR}/inc
35 ${CMAKE_CURRENT_SOURCE_DIR}/src/isaac
36 )
37
38set (SRC
39 ${CMAKE_CURRENT_SOURCE_DIR}/src/oaes_lib.c
40 ${CMAKE_CURRENT_SOURCE_DIR}/src/isaac/rand.c
41 )
42
43set (HDR
44 ${CMAKE_CURRENT_SOURCE_DIR}/inc/oaes_config.h
45 ${CMAKE_CURRENT_SOURCE_DIR}/inc/oaes_lib.h
46 ${CMAKE_CURRENT_SOURCE_DIR}/src/isaac/rand.h
47 ${CMAKE_CURRENT_SOURCE_DIR}/src/isaac/standard.h
48 )
49
50set (SRC_test_encrypt
51 ${CMAKE_CURRENT_SOURCE_DIR}/test/test_encrypt.c
52 )
53
54set (SRC_test_keys
55 ${CMAKE_CURRENT_SOURCE_DIR}/test/test_keys.c
56 )
57
58set (SRC_test_performance
59 ${CMAKE_CURRENT_SOURCE_DIR}/test/test_performance.c
60 )
61
62set (SRC_vt_aes
63 ${CMAKE_CURRENT_SOURCE_DIR}/test/vt_aes.c
64 )
65
66set (SRC_oaes
67 ${CMAKE_CURRENT_SOURCE_DIR}/src/oaes.c
68 )
69
70add_executable (test_encrypt ${SRC_test_encrypt} ${SRC} ${HDR})
71add_executable (test_keys ${SRC_test_keys} ${SRC} ${HDR})
72add_executable (test_performance ${SRC_test_performance} ${SRC} ${HDR})
73add_executable (vt_aes ${SRC_vt_aes} ${SRC} ${HDR})
74add_executable (oaes ${SRC_oaes} ${SRC} ${HDR})