-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (39 loc) · 1.69 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Copyright (C) 2015 Cybernetica
#
# Research/Commercial License Usage
# Licensees holding a valid Research License or Commercial License
# for the Software may use this file according to the written
# agreement between you and Cybernetica.
#
# GNU General Public License Usage
# Alternatively, this file may be used under the terms of the GNU
# General Public License version 3.0 as published by the Free Software
# Foundation and appearing in the file LICENSE.GPL included in the
# packaging of this file. Please review the following information to
# ensure the GNU General Public License version 3.0 requirements will be
# met: http://www.gnu.org/copyleft/gpl-3.0.html.
#
# For further information, please contact us at [email protected].
#
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(SharemindSecrecFramework VERSION 2.4.1 LANGUAGES C CXX)
INCLUDE("${CMAKE_CURRENT_SOURCE_DIR}/config.local" OPTIONAL)
INCLUDE("${CMAKE_CURRENT_BINARY_DIR}/config.local" OPTIONAL)
FIND_PACKAGE(SharemindCMakeHelpers 1.4 REQUIRED)
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeIncludes/" ${CMAKE_MODULE_PATH})
find_package(Boost 1.62 COMPONENTS filesystem iostreams program_options system REQUIRED)
find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
find_package(MPFR REQUIRED)
FIND_PACKAGE(SharemindCHeaders 1.3.0 REQUIRED)
FIND_PACKAGE(SharemindCxxHeaders 0.8.0 REQUIRED)
FIND_PACKAGE(SharemindLibAs 0.4.0 REQUIRED)
FIND_PACKAGE(SharemindLibExecutable 0.4.0 REQUIRED)
add_definitions("-DSHAREMIND_STDLIB_PATH=\"${CMAKE_INSTALL_PREFIX}/lib/sharemind/stdlib\"")
SharemindSetupPackaging()
ADD_SUBDIRECTORY(src/libscc)
ADD_SUBDIRECTORY(src/sca)
ADD_SUBDIRECTORY(src/scc)
ADD_SUBDIRECTORY(tests)
SharemindPackagingFinalize()