1 Star 0 Fork 0

panxuesong/optee_test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required (VERSION 3.4)
project (optee_test C)
# Default cross compile settings
set (CMAKE_TOOLCHAIN_FILE CMakeToolchain.txt)
set (OPTEE_TEST_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
################################################################################
# Compiler flags:
# We want to use the same flags in the entire optee_client git
################################################################################
add_compile_options (
-Wall -Wbad-function-cast -Wcast-align
-Werror-implicit-function-declaration -Wextra
-Wfloat-equal -Wformat-nonliteral -Wformat-security
-Wformat=2 -Winit-self -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-include-dirs
-Wmissing-noreturn -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wshadow -Wstrict-prototypes
-Wswitch-default -Wunsafe-loop-optimizations
-Wwrite-strings -Werror -fPIC
-Wno-missing-field-initializers
)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
add_subdirectory (ta)
add_subdirectory (host/xtest)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/panxuesong/optee_test.git
git@gitee.com:panxuesong/optee_test.git
panxuesong
optee_test
optee_test
master

搜索帮助