1 Star 0 Fork 4

yingjie.zhu/x2lib

forked from xktesla/x2lib 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
xktesla 提交于 2022-04-19 21:24 . 开源x2lib(遗弃xlib)
# CMakeList.txt: thirdx 的 CMake 项目,在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 3.8)
project ("thirdparty")
function(AutoBuild)
IF(CMAKE_BUILD_TYPE MATCHES "Debug" AND WIN32)
add_definitions(-D__DEBUG__)
add_definitions(-D__WIN32__)
add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-D_LIB)
ELSEIF((CMAKE_BUILD_TYPE MATCHES "Release" OR CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo") AND WIN32)
add_definitions(-D__WIN32__)
add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-D_LIB)
ELSEIF(CMAKE_BUILD_TYPE MATCHES "Debug" AND UNIX)
add_definitions(-D__DEBUG__)
add_definitions(-D__LINUX__)
add_definitions(-fpermissive)
ELSEIF((CMAKE_BUILD_TYPE MATCHES "Release" OR CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo") AND UNIX)
add_definitions(-D__LINUX__)
add_definitions(-fpermissive)
ENDIF()
add_subdirectory(httplib)
#add_subdirectory(wolfssl)
add_subdirectory(sqlite3xx)
add_subdirectory(movcrypto)
add_subdirectory(tinyxml2)
add_subdirectory(x2lib)
add_library(x2lib STATIC $<TARGET_OBJECTS:x2lib_objs> $<TARGET_OBJECTS:httplib_objs> $<TARGET_OBJECTS:movcrypto_objs> $<TARGET_OBJECTS:sqlite3xx_objs> $<TARGET_OBJECTS:tinyxml2_objs>)
endfunction(AutoBuild)
AutoBuild()
# TODO: 如有需要,请添加测试并安装目标。
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/yingjie-zhu/x2lib.git
git@gitee.com:yingjie-zhu/x2lib.git
yingjie-zhu
x2lib
x2lib
master

搜索帮助