1 Star 0 Fork 1

fendou8/repo_mirror_push

forked from chenq/repo_mirror_push 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
chenq 提交于 2025-03-03 18:03 +08:00 . 删除正则表达式的使用
# 显示详细过程: make VERBOSE=on make VERBOSE=1 make V=1
#指定使用该CMakeList.txt文件需要的cmake最低版本
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
#指定项目信息
project(repo_mirror_push)
set(TARGET_NAME ${CMAKE_PROJECT_NAME})
# include and source
include_directories(inc/base) #头文件路径
include_directories(inc/core)
aux_source_directory(src ALL_SRCS) # 查找src目录下的所有源文件, 并将名称保存到ALL_SRCS变量
aux_source_directory(src/base ALL_SRCS)
aux_source_directory(src/core ALL_SRCS)
message("source: ${ALL_SRCS}")
set(CMAKE_STRIP "strip")
set(CMAKE_BUILD_TYPE "RELEASE")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s -Wno-unused-command-line-argument")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s -Wno-unused-command-line-argument")
#指定生成目标
add_executable(${TARGET_NAME} ${ALL_SRCS})
target_link_libraries(${TARGET_NAME})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/fendou8/repo_mirror_push.git
git@gitee.com:fendou8/repo_mirror_push.git
fendou8
repo_mirror_push
repo_mirror_push
master

搜索帮助