1 Star 0 Fork 28

cwg2022/itrustee_sdk

forked from openEuler/itrustee_sdk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
guweibo2 提交于 2022-02-23 14:37 . 1 add CMakeLists.txt for teec_adaptor
cmake_minimum_required (VERSION 2.8)
project (teec_adaptor)
cmake_policy (SET CMP0037 OLD)
# Add source files
set(SRCS ./src/CA/cloud/libteec_adaptor.c)
# Add header file include directories
include_directories(
./include/CA
./thirdparty/open_source/liboundscheck/include
)
# Set options
set(CMAKE_TEEC_ADAPTOR_FLAGS "-fstack-protector-strong -fPIC -ftrapv -s -D_FORTIFY_SOURCE=2 -O2")
set(CMAKE_TEEC_ADAPTOR_FLAGS "${CMAKE_TEEC_ADAPTOR_FLAGS} -z text -z now -z relro -z noexecstack -pie -shared")
# Set output dir
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})
# Generate .so file
add_library(teec_adaptor SHARED ${SRCS})
set_target_properties(teec_adaptor PROPERTIES COMPILE_FLAGS ${CMAKE_TEEC_ADAPTOR_FLAGS})
# Clean output
add_custom_target(clean
COMMAND rm -rf ${PROJECT_SOURCE_DIR}/libteec_adaptor.so
COMMAND @echo "clean up"
)
# Install
add_custom_target(install
COMMAND install -d /opt/itrustee_sdk
COMMAND cp -rf ${PROJECT_SOURCE_DIR}/build ${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/License ${PROJECT_SOURCE_DIR}/thirdparty /opt/itrustee_sdk
COMMAND install -pm 644 ${PROJECT_SOURCE_DIR}/libteec_adaptor.so /lib64
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cwg2022/itrustee_sdk.git
git@gitee.com:cwg2022/itrustee_sdk.git
cwg2022
itrustee_sdk
itrustee_sdk
master

搜索帮助