1 Star 0 Fork 17

heppen/powerapi

forked from openEuler/powerapi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 772 Bytes
一键复制 编辑 原始数据 按行查看 历史
heppen 提交于 2024-06-22 10:47 +08:00 . build with asan
cmake_minimum_required (VERSION 3.16)
project (powerapi_entrance C)
set(CMAKE_VERBOSE_MAKEFILE on)
if(DEFINED RELEASE_MODE)
add_definitions(-DRELEASE_MODE=${RELEASE_MODE})
endif()
option(ENABLE_ASAN "Enable Address Sanitizer" OFF)
if(ENABLE_ASAN)
message(STATUS "AddressSanitizer enabled")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined")
set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -fsanitize=address")
endif()
add_subdirectory(pwrapic/src)
add_subdirectory(pwrapis/src)
if(NOT DEFINED RELEASE_MODE)
add_subdirectory(pwrapic/gtest)
add_subdirectory(pwrapic/test)
endif(NOT DEFINED RELEASE_MODE)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/heppen/powerapi.git
git@gitee.com:heppen/powerapi.git
heppen
powerapi
powerapi
master

搜索帮助