1
- cmake_minimum_required (VERSION 3.5.1)
1
+ cmake_minimum_required(VERSION 3.5.1)
2
2
3
3
### To use gcc/g++ on a Macintosh, you must set the Compilers
4
4
### here, not inside the project
@@ -18,10 +18,10 @@ cmake_minimum_required (VERSION 3.5.1)
18
18
19
19
project(demo CXX)
20
20
set(CMAKE_CXX_STANDARD 17)
21
- option( BUILD_STATIC "Set to ON to include static versions of the library" OFF)
21
+ option(BUILD_STATIC "Set to ON to include static versions of the library" OFF)
22
22
23
23
find_package(OpenFHE CONFIG REQUIRED)
24
- if (OpenFHE_FOUND)
24
+ if(OpenFHE_FOUND)
25
25
message(STATUS "FOUND PACKAGE OpenFHE")
26
26
message(STATUS "OpenFHE Version: ${BASE_OPENFHE_VERSION}")
27
27
message(STATUS "OpenFHE installed as shared libraries: ${OpenFHE_SHARED}")
@@ -30,30 +30,30 @@ if (OpenFHE_FOUND)
30
30
message(STATUS "OpenFHE Native Backend size: ${OpenFHE_NATIVE_SIZE}")
31
31
else()
32
32
message(FATAL_ERROR "PACKAGE OpenFHE NOT FOUND")
33
- endif ()
33
+ endif()
34
34
35
- set( CMAKE_CXX_FLAGS ${OpenFHE_CXX_FLAGS} )
35
+ set(CMAKE_CXX_FLAGS ${OpenFHE_CXX_FLAGS})
36
36
37
- include_directories( ${OPENMP_INCLUDES} )
38
- include_directories( ${OpenFHE_INCLUDE} )
39
- include_directories( ${OpenFHE_INCLUDE}/third-party/include )
40
- include_directories( ${OpenFHE_INCLUDE}/core )
41
- include_directories( ${OpenFHE_INCLUDE}/pke )
42
- include_directories( ${OpenFHE_INCLUDE}/binfhe )
37
+ include_directories(${OPENMP_INCLUDES})
38
+ include_directories(${OpenFHE_INCLUDE})
39
+ include_directories(${OpenFHE_INCLUDE}/third-party/include)
40
+ include_directories(${OpenFHE_INCLUDE}/core)
41
+ include_directories(${OpenFHE_INCLUDE}/pke)
42
+ include_directories(${OpenFHE_INCLUDE}/binfhe)
43
43
### add directories for other OpenFHE modules as needed for your project
44
44
45
- link_directories( ${OpenFHE_LIBDIR} )
46
- link_directories( ${OPENMP_LIBRARIES} )
45
+ link_directories(${OpenFHE_LIBDIR})
46
+ link_directories(${OPENMP_LIBRARIES})
47
47
if(BUILD_STATIC)
48
- set( CMAKE_EXE_LINKER_FLAGS "${OpenFHE_EXE_LINKER_FLAGS} -static")
49
- link_libraries( ${OpenFHE_STATIC_LIBRARIES} )
48
+ set(CMAKE_EXE_LINKER_FLAGS "${OpenFHE_EXE_LINKER_FLAGS} -static")
49
+ link_libraries(${OpenFHE_STATIC_LIBRARIES})
50
50
else()
51
- set( CMAKE_EXE_LINKER_FLAGS ${OpenFHE_EXE_LINKER_FLAGS} )
52
- link_libraries( ${OpenFHE_SHARED_LIBRARIES} )
51
+ set(CMAKE_EXE_LINKER_FLAGS ${OpenFHE_EXE_LINKER_FLAGS})
52
+ link_libraries(${OpenFHE_SHARED_LIBRARIES})
53
53
endif()
54
54
55
55
### ADD YOUR EXECUTABLE(s) HERE
56
- ### add_executable( EXECUTABLE-NAME SOURCES )
56
+ ### add_executable(EXECUTABLE-NAME SOURCES)
57
57
###
58
58
### EXAMPLE:
59
- ### add_executable( test demo-simple-example.cpp )
59
+ ### add_executable(test demo-simple-example.cpp)
0 commit comments