2 Star 3 Fork 5

Hprose/hprose-cpp1x

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 855 Bytes
一键复制 编辑 原始数据 按行查看 历史
陈飞 提交于 2016-11-10 12:08 +08:00 . Added some type for Variant.
cmake_minimum_required(VERSION 3.2)
project(hprose)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++11")
if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" AND ${CMAKE_SYSTEM} MATCHES "Linux")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/c++/v1 -stdlib=libc++ -lc++abi")
endif()
set(SOURCE_FILES
hprose/io/Writer.cpp
hprose/io/Reader.cpp
hprose/io/decoders/BoolDecoder.cpp
hprose/io/decoders/IntDecoder.cpp
hprose/io/decoders/StringDecoder.cpp
hprose/util/Util.cpp
hprose/Variant.cpp)
include_directories(".")
add_library(hprose STATIC ${SOURCE_FILES})
add_executable(IOTest.out hprose/io/test/WriterTest.cpp hprose/io/test/ReaderTest.cpp hprose/test/VariantTest.cpp)
target_include_directories(IOTest.out PUBLIC "${GTEST_DIR}/include")
target_link_libraries(IOTest.out hprose pthread "${GTEST_DIR}/libgtest.a")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/andot/hprose-cpp1x.git
git@gitee.com:andot/hprose-cpp1x.git
andot
hprose-cpp1x
hprose-cpp1x
master

搜索帮助