1 Star 1 Fork 0

yhuan416/mmem_debug

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 801 Bytes
一键复制 编辑 原始数据 按行查看 历史
yhuan416 提交于 2023-07-20 18:45 +08:00 . Mlist (#37)
cmake_minimum_required(VERSION 3.5)
project(mmem_debug)
option(MMEM_DEBUG_BUILD_TEST "Build mmem_debug test" ON)
if (DEFINED MMEM_DEBUG_BUILD_TEST)
message(STATUS "mmem_debug: Build test: ${MMEM_DEBUG_BUILD_TEST}")
endif ()
if (MMEM_DEBUG_BUILD_TEST)
enable_testing()
endif ()
file(GLOB MMEM_DEBUG_SRC src/*.c)
# mlist
add_subdirectory(third_party/mlist-0.0.1)
# mmem_debug_adapter
add_subdirectory(adapter)
add_library(mmem_debug STATIC ${MMEM_DEBUG_SRC})
target_include_directories(mmem_debug PUBLIC include)
target_link_libraries(mmem_debug PRIVATE mmem_debug_adapter mlist)
# test build
if (MMEM_DEBUG_BUILD_TEST)
# disable tests in CUnit
set(CUNIT_DISABLE_TESTS TRUE)
add_subdirectory(third_party/cunit-3.2.7/CUnit)
# add test
add_subdirectory(test)
endif ()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/yhuan416/mmem_debug.git
git@gitee.com:yhuan416/mmem_debug.git
yhuan416
mmem_debug
mmem_debug
main

搜索帮助