3 Star 0 Fork 0

mirrors_aliyun/coolbpf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 802 Bytes
一键复制 编辑 原始数据 按行查看 历史
程书意 提交于 2023-04-18 16:13 . enable test coverage
project(coolbpf C)
cmake_minimum_required(VERSION 2.8.12)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/third
${CMAKE_CURRENT_SOURCE_DIR}/arch/${CMAKE_SYSTEM_PROCESSOR}
# ${CMAKE_CURRENT_BINARY_DIR}/third/libbpf
${CMAKE_CURRENT_SOURCE_DIR}/third/libbpf/include
${CMAKE_CURRENT_SOURCE_DIR}/third/libbpf/include/uapi
)
option(BUILD_TESTING "Build test cases" OFF)
option(BUILD_EXAMPLE "Build example cases" OFF)
option(BUILD_LCC "Build lcc project" OFF)
OPTION(ENABLE_GCOV "Enable gcov" OFF)
IF (ENABLE_GCOV)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
ENDIF()
# compile coolbpf library
add_subdirectory(src)
# test cases
add_subdirectory(tests)
add_subdirectory(tools)
if(BUILD_LCC)
add_subdirectory(lcc)
add_subdirectory(third)
endif()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_aliyun/coolbpf.git
git@gitee.com:mirrors_aliyun/coolbpf.git
mirrors_aliyun
coolbpf
coolbpf
master

搜索帮助