-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
49 lines (41 loc) · 2.14 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
# SPDX-FileCopyrightText: 2024 Infineon Technologies AG
#
# SPDX-License-Identifier: MIT
cmake_minimum_required(VERSION 3.5)
include(GNUInstallDirs)
project(optigatrust)
set(TRUSTM_PATH external/optiga-trust-m )
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/examples/utilities/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/examples/optiga/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/config)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${TRUSTM_PATH}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${TRUSTM_PATH}/include/cmd)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${TRUSTM_PATH}/include/common)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${TRUSTM_PATH}/include/comms)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${TRUSTM_PATH}/include/ifx_i2c)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${TRUSTM_PATH}/include/pal)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${TRUSTM_PATH}/external/mbedtls/include)
include_directories(/usr/local/openssl/include)
# Add sources for Trust M Core and Platform Abstraction Layer
# Add sources
set(TRUSTM_CORE_SRCS
${TRUSTM_PATH}/src/crypt/optiga_crypt.c
${TRUSTM_PATH}/src/util/optiga_util.c
${TRUSTM_PATH}/src/cmd/optiga_cmd.c
${TRUSTM_PATH}/src/common/optiga_lib_common.c
${TRUSTM_PATH}/src/comms/ifx_i2c/ifx_i2c.c
${TRUSTM_PATH}/src/comms/ifx_i2c/ifx_i2c_config.c
${TRUSTM_PATH}/src/comms/ifx_i2c/ifx_i2c_data_link_layer.c
${TRUSTM_PATH}/src/comms/ifx_i2c/ifx_i2c_physical_layer.c
${TRUSTM_PATH}/src/comms/ifx_i2c/ifx_i2c_presentation_layer.c
${TRUSTM_PATH}/src/comms/ifx_i2c/ifx_i2c_transport_layer.c
${TRUSTM_PATH}/src/comms/optiga_comms_ifx_i2c.c
${TRUSTM_PATH}/external/mbedtls/library/sha256.c
${TRUSTM_PATH}/external/mbedtls/library/platform_util.c
${CMAKE_CURRENT_SOURCE_DIR}/examples/utilities/log.c
${CMAKE_CURRENT_SOURCE_DIR}/examples/utilities/pkcs11_trustm.c
${CMAKE_CURRENT_SOURCE_DIR}/examples/utilities/ecdsa_utils.c
${CMAKE_CURRENT_SOURCE_DIR}/examples/utilities/optiga_lib_logger.c
)
#~ include(${CMAKE_CURRENT_SOURCE_DIR}/linux_libusb.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/linux_i2c.cmake)