-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroupsig.cmake
26 lines (24 loc) · 1.12 KB
/
groupsig.cmake
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
include(ExternalProject)
# Add libgroupsig as an external project
ExternalProject_Add(libgroupsig
SOURCE_DIR ${CMAKE_SOURCE_DIR}/modules/libgroupsig/tee
BINARY_DIR ${CMAKE_BINARY_DIR}/libgroupsig-build
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
INSTALL_COMMAND ""
)
# If we add src and src/test/basic here, it would load the code in the first part of the compilation
# throwing errors everywhere. We want to include those header files in the second part of the compilation
# e.g the enclave
include_directories(${CMAKE_SOURCE_DIR}/modules/libgroupsig/src/include)
link_directories(${CMAKE_BINARY_DIR}/libgroupsig-build/lib)
include_directories(${CMAKE_BINARY_DIR}/libgroupsig-build/external/include)
link_directories(${CMAKE_BINARY_DIR}/libgroupsig-build/external/lib)
# Add mondrian as an external project
ExternalProject_Add(mondrian
SOURCE_DIR ${CMAKE_SOURCE_DIR}/modules/mondrian/tee
BINARY_DIR ${CMAKE_BINARY_DIR}/mondrian-build
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
INSTALL_COMMAND ""
)
include_directories(${CMAKE_SOURCE_DIR}/modules/mondrian/src)
link_directories(${CMAKE_BINARY_DIR}/mondrian-build)