-
Notifications
You must be signed in to change notification settings - Fork 197
/
OpenFHEConfig.cmake.in
71 lines (58 loc) · 2.58 KB
/
OpenFHEConfig.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
# - Config file for the OpenFHE package
# It defines the following variables
# OpenFHE_INCLUDE_DIRS - include directories for OpenFHE
# OpenFHE_LIBRARIES - libraries to link against
get_filename_component(OpenFHE_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# Our library dependencies (contains definitions for IMPORTED targets)
if(NOT OpenFHE_BINARY_DIR)
include("${OpenFHE_CMAKE_DIR}/OpenFHETargets.cmake")
endif()
# These are IMPORTED targets created by OpenFHETargets.cmake
set(OpenFHE_INCLUDE "@INSTALL_INCLUDE_DIR@")
set(OpenFHE_LIBDIR "@INSTALL_LIB_DIR@")
set(OpenFHE_LIBRARIES @OpenFHE_PACKAGE_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
set(OpenFHE_STATIC_LIBRARIES @OpenFHE_STATIC_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
set(OpenFHE_SHARED_LIBRARIES @OpenFHE_SHARED_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
set(BASE_OPENFHE_VERSION @OPENFHE_VERSION@)
set(OPENMP_INCLUDES "@OPENMP_INCLUDES@")
set(OPENMP_LIBRARIES "@OPENMP_LIBRARIES@")
set(OpenFHE_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
set(OpenFHE_C_FLAGS "@CMAKE_C_FLAGS@")
set (OpenFHE_EXE_LINKER_FLAGS "@CMAKE_EXE_LINKER_FLAGS@")
# CXX info
set(OpenFHE_CXX_STANDARD "@CMAKE_CXX_STANDARD@")
set(OpenFHE_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@")
set(OpenFHE_CXX_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@")
# Build Options
set(OpenFHE_STATIC "@BUILD_STATIC@")
set(OpenFHE_SHARED "@BUILD_SHARED@")
set(OpenFHE_TCM "@WITH_TCM@")
set(OpenFHE_OPENMP "@WITH_OPENMP@")
set(OpenFHE_NATIVE_SIZE "@NATIVE_SIZE@")
set(OpenFHE_CKKS_M_FACTOR "@CKKS_M_FACTOR@")
set(OpenFHE_NATIVEOPT "@WITH_NATIVEOPT@")
# Math Backend
set(OpenFHE_BACKEND "@MATHBACKEND@")
# Build Details
set(OpenFHE_EMSCRIPTEN "@EMSCRIPTEN@")
set(OpenFHE_ARCHITECTURE "@ARCHITECTURE@")
set(OpenFHE_BACKEND_FLAGS_BASE "@OpenFHE_BACKEND_FLAGS@")
# Compile Definitions
if( "@BUILD_SHARED@" )
set(OpenFHE_BINFHE_COMPILE_DEFINITIONS "@_pal_binfhe_compile_defs@")
set(OpenFHE_CORE_COMPILE_DEFINITIONS "@_pal_core_compile_defs@")
set(OpenFHE_PKE_COMPILE_DEFINITIONS "@_pal_pke_compile_defs@")
set(OpenFHE_COMPILE_DEFINITIONS
${OpenFHE_BINFHE_COMPILE_DEFINITIONS}
${OpenFHE_CORE_COMPILE_DEFINITIONS}
${OpenFHE_PKE_COMPILE_DEFINITIONS})
endif()
if( "@BUILD_STATIC@" )
set(OpenFHE_BINFHE_COMPILE_DEFINITIONS_STATIC "@_pal_binfhe_compile_defs_static@")
set(OpenFHE_CORE_COMPILE_DEFINITIONS_STATIC "@_pal_core_compile_defs_static@")
set(OpenFHE_PKE_COMPILE_DEFINITIONS_STATIC "@_pal_pke_compile_defs_static@")
set(OpenFHE_COMPILE_DEFINITIONS_STATIC
${OpenFHE_BINFHE_COMPILE_DEFINITIONS_STATIC}
${OpenFHE_CORE_COMPILE_DEFINITIONS_STATIC}
${OpenFHE_PKE_COMPILE_DEFINITIONS_STATIC})
endif()