-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPalisadeConfig.cmake.in
84 lines (69 loc) · 3.01 KB
/
PalisadeConfig.cmake.in
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# - Config file for the Palisade package
# It defines the following variables
# PALISADE_INCLUDE_DIRS - include directories for Palisade
# PALISADE_LIBRARIES - libraries to link against
get_filename_component(PALISADE_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# Our library dependencies (contains definitions for IMPORTED targets)
if(NOT Palisade_BINARY_DIR)
include("${PALISADE_CMAKE_DIR}/PalisadeTargets.cmake")
endif()
# These are IMPORTED targets created by PalisadeTargets.cmake
set(PALISADE_INCLUDE "@INSTALL_INCLUDE_DIR@")
set(PALISADE_LIBDIR "@INSTALL_LIB_DIR@")
set(PALISADE_LIBRARIES @PALISADE_PACKAGE_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
set(PALISADE_STATIC_LIBRARIES @PALISADE_STATIC_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
set(PALISADE_SHARED_LIBRARIES @PALISADE_SHARED_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
set(BASE_PALISADE_VERSION @PALISADE_VERSION@)
set(OPENMP_INCLUDES "@OPENMP_INCLUDES@" )
set(OPENMP_LIBRARIES "@OPENMP_LIBRARIES@" )
set(PALISADE_CXX_FLAGS "@CMAKE_CXX_FLAGS@ @OpenMP_CXX_FLAGS@")
set(PALISADE_C_FLAGS "@CMAKE_C_FLAGS@ @OpenMP_C_FLAGS@")
if( "@WITH_NTL@" STREQUAL "Y" )
set(PALISADE_CXX_FLAGS "${PALISADE_CXX_FLAGS} -DWITH_NTL" )
set(PALISADE_C_FLAGS "${PALISADE_C_FLAGS} -DWITH_NTL")
endif()
set (PALISADE_EXE_LINKER_FLAGS "@CMAKE_EXE_LINKER_FLAGS@ @OpenMP_EXE_LINKER_FLAGS@")
# CXX info
set(PALISADE_CXX_STANDARD "@CMAKE_CXX_STANDARD@")
set(PALISADE_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@")
set(PALISADE_CXX_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@")
# Build Options
set(PALISADE_STATIC "@BUILD_STATIC@")
set(PALISADE_SHARED "@BUILD_SHARED@")
set(PALISADE_TCM "@WITH_TCM@")
set(PALISADE_WITH_INTEL_HEXL "@WITH_INTEL_HEXL@")
set(PALISADE_OPENMP "@WITH_OPENMP@")
set(PALISADE_NATIVE_SIZE "@NATIVE_SIZE@")
set(PALISADE_CKKS_M_FACTOR "@CKKS_M_FACTOR@")
set(PALISADE_NATIVEOPT "@WITH_NATIVEOPT@")
# Math Backend
if("@WITH_BE2@")
set(PALISADE_BACKEND "BE2")
elseif("@WITH_BE4@")
set(PALISADE_BACKEND "BE4")
elseif("@WITH_NTL@")
set(PALISADE_BACKEND "NTL")
endif()
# Build Details
set(PALISADE_EMSCRIPTEN "@EMSCRIPTEN@")
set(PALISADE_ARCHITECTURE "@ARCHITECTURE@")
set(PALISADE_BACKEND_FLAGS_BASE "@PALISADE_BACKEND_FLAGS@")
# Compile Definitions
if( "@BUILD_SHARED@" )
set(PALISADE_BINFHE_COMPILE_DEFINITIONS "@_pal_binfhe_compile_defs@")
set(PALISADE_CORE_COMPILE_DEFINITIONS "@_pal_core_compile_defs@")
set(PALISADE_PKE_COMPILE_DEFINITIONS "@_pal_pke_compile_defs@")
set(PALISADE_COMPILE_DEFINITIONS
${PALISADE_BINFHE_COMPILE_DEFINITIONS}
${PALISADE_CORE_COMPILE_DEFINITIONS}
${PALISADE_PKE_COMPILE_DEFINITIONS})
endif()
if( "@BUILD_STATIC@" )
set(PALISADE_BINFHE_COMPILE_DEFINITIONS_STATIC "@_pal_binfhe_compile_defs_static@")
set(PALISADE_CORE_COMPILE_DEFINITIONS_STATIC "@_pal_core_compile_defs_static@")
set(PALISADE_PKE_COMPILE_DEFINITIONS_STATIC "@_pal_pke_compile_defs_static@")
set(PALISADE_COMPILE_DEFINITIONS_STATIC
${PALISADE_BINFHE_COMPILE_DEFINITIONS_STATIC}
${PALISADE_CORE_COMPILE_DEFINITIONS_STATIC}
${PALISADE_PKE_COMPILE_DEFINITIONS_STATIC})
endif()