加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
shaojx 提交于 2024-12-17 18:17 . 添加 mysql capi示例代码
#CMake 最低版本号要求
cmake_minimum_required (VERSION 3.0)
# 项目信息
project(3rdparty_demos VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# 设置输出路径
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/)
find_package(glog REQUIRED)
# 添加自定义 cmake 文件
include(${CMAKE_SOURCE_DIR}/cmake/common.cmake)
# 添加子目录
add_subdirectory(examples/example_botan2)
add_subdirectory(examples/example_cpp_httplib)
add_subdirectory(examples/example_glog)
add_subdirectory(examples/example_hiredis)
add_subdirectory(examples/example_jsoncpp)
add_subdirectory(examples/example_libcurl)
add_subdirectory(examples/example_libevent)
add_subdirectory(examples/example_mongoose)
add_subdirectory(examples/example_mysql_capi)
add_subdirectory(examples/example_mysql_connector)
add_subdirectory(examples/example_nlohmann_json)
add_subdirectory(examples/example_paho_mqtt)
add_subdirectory(examples/example_pcap)
add_subdirectory(examples/example_protobuf)
add_subdirectory(examples/example_rdkafka)
add_subdirectory(examples/example_sqlite3)
add_subdirectory(examples/example_thrift)
add_subdirectory(examples/example_tinyxml2)
add_subdirectory(examples/example_websocketpp)
add_subdirectory(examples/example_yamlcpp)
add_subdirectory(examples/example_zeromq)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化