当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 6

jee/log4x
暂停

forked from caiwang213/log4x 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 967 Bytes
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 2.8)
project(log4x)
message(STATUS "cmake default debug CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_DEBUG}")
message(STATUS "cmake default release CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_RELEASE}")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
#SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
option(BUILD_SHARED_LIBS "Build liblog4x as a shared library." OFF)
#option(BUILD_SHARED_LIBS "Build liblog4x as a shared library." ON)
option(BUILD_STATIC_LIBS "Build liblog4x static library." ON)
# PROJECT_BINARY_DIR and PROJECT_SOURCE_DIR are the variables of cmake
set(LOG4X_INC_DIR ${PROJECT_SOURCE_DIR}/include)
set(LOG4X_LIB_DIR ${PROJECT_SOURCE_DIR}/lib)
set(LOG4X_SRC_DIR ${PROJECT_SOURCE_DIR}/src)
if(NOT MSVC)
#set(CMAKE_CXX_FLAGS "-std=c++11 -pthread ${CMAKE_CXX_FLAGS}")
add_definitions(-std=c++11)
endif()
message(STATUS "C++ flags have ${CMAKE_CXX_FLAGS}")
add_subdirectory(src)
add_subdirectory(test)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/jempson/log4x.git
git@gitee.com:jempson/log4x.git
jempson
log4x
log4x
master

搜索帮助