8 Star 8 Fork 2

wujehy/GeeJoanProtocol_C

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 892 Bytes
一键复制 编辑 原始数据 按行查看 历史
wujehy 提交于 2020-06-21 23:20 . add : deviceLogin
cmake_minimum_required(VERSION 3.14)
project(testProtobufc)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CX_STANDARD 11)
set(BUILDING_TEST)
if (WIN32)
add_definitions(-D_WIN32 -DWIN32 -DUTF-8 -D_UTF-8)
set(CompilerFlags
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE)
foreach (CompilerFlag ${CompilerFlags})
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
endforeach ()
endif ()
if(CMAKE_CL_64)
add_definitions(-D_WIN64 -DWIN64)
endif()
option(BUILDING_TESTING "Builds tests" ON)
add_subdirectory(src)
include_directories(src)
add_executable(testProtobufc main.c)
target_link_libraries(testProtobufc GeeJoan_C)
if (BUILDING_TESTING)
MESSAGE(STATUS "BUILD TEST")
add_subdirectory(tests)
endif ()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wujehy/GeeJoanProtocol_C.git
[email protected]:wujehy/GeeJoanProtocol_C.git
wujehy
GeeJoanProtocol_C
GeeJoanProtocol_C
master

搜索帮助