-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
53 lines (46 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.10)
project(tpm2-algtest C)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -D_GNU_SOURCE -DOPENSSL_SUPPRESS_DEPRECATED")
set(LIB_SRC ${CMAKE_SOURCE_DIR}/lib)
set(TOOLS_SRC ${CMAKE_SOURCE_DIR}/tools)
set(ALGTEST_SRC ${CMAKE_SOURCE_DIR}/algtest)
set(SOURCES
${LIB_SRC}/files.c
${LIB_SRC}/log.c
${LIB_SRC}/pcr.c
${LIB_SRC}/tpm2_alg_util.c
${LIB_SRC}/tpm2_attr_util.c
${LIB_SRC}/tpm2_auth_util.c
${LIB_SRC}/tpm2_capability.c
${LIB_SRC}/tpm2_convert.c
${LIB_SRC}/tpm2_ctx_mgmt.c
${LIB_SRC}/tpm2_errata.c
${LIB_SRC}/tpm2_error.c
${LIB_SRC}/tpm2_hash.c
${LIB_SRC}/tpm2_hierarchy.c
${LIB_SRC}/tpm2_openssl.c
${LIB_SRC}/tpm2_options.c
${LIB_SRC}/tpm2_policy.c
${LIB_SRC}/tpm2_session.c
${LIB_SRC}/tpm2_tcti_ldr.c
${LIB_SRC}/tpm2_util.c
${LIB_SRC}/tpm_kdfa.c
${TOOLS_SRC}/tpm2_tool.c
${TOOLS_SRC}/tpm2_algtest.c
${ALGTEST_SRC}/util.c
${ALGTEST_SRC}/logging.c
${ALGTEST_SRC}/options.c
${ALGTEST_SRC}/key_params_generator.c
${ALGTEST_SRC}/scenario.c
${ALGTEST_SRC}/keygen.c
${ALGTEST_SRC}/perf.c
${ALGTEST_SRC}/cryptoops.c
${ALGTEST_SRC}/rng.c
${ALGTEST_SRC}/object_util.c
${ALGTEST_SRC}/perf_util.c
${ALGTEST_SRC}/status.c
)
include_directories(${LIB_SRC} ${TOOLS_SRC} ${ALGTEST_SRC})
add_executable(tpm2_algtest ${SOURCES})
target_link_libraries(tpm2_algtest tss2-mu tss2-sys crypto dl)
install(TARGETS tpm2_algtest DESTINATION /usr/bin)