-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·42 lines (37 loc) · 1.55 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
# Copyright (c) Open Enclave SDK contributors.
# Licensed under the MIT License.
include_directories(${Boost_INCLUDE_DIRS})
add_custom_command(
OUTPUT attestation_u.h attestation_u.c attestation_args.h
DEPENDS ${CMAKE_SOURCE_DIR}/attestation.edl
COMMAND
openenclave::oeedger8r --untrusted
${CMAKE_SOURCE_DIR}/attestation.edl --search-path ${OE_INCLUDEDIR}
--search-path ${OE_INCLUDEDIR}/openenclave/edl/sgx)
add_executable(attestation_host
host.cpp ${CMAKE_CURRENT_BINARY_DIR}/attestation_u.c
../host/system_init.cpp
../host/secure_channel.cpp
../host/network/My_Server.cpp
../host/network/get_ip.cpp
../host/network/process_buffer.cpp
../host/network/misc.cpp
../host/configuration.cpp
../host/network/message_produce.cpp
../host/network/ip_requests.cpp
../host/enclave_operation.cpp
../host/process_ae_requests.cpp
)
target_include_directories(
attestation_host
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../ # For common/shared.h
${CMAKE_CURRENT_BINARY_DIR}
${Boost_LIBRARIES})
if (WIN32)
add_dcap_client_target(attestation_dcap_target)
add_dependencies(attestation_host attestation_dcap_target)
copy_oedebugrt_target(attestation_oedebugrt_target)
add_dependencies(attestation_host attestation_oedebugrt_target)
endif ()
find_package(Boost REQUIRED COMPONENTS thread)
target_link_libraries(attestation_host openenclave::oehost Boost::thread)